mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
author Karl Erik Õunapuu <karlerik@kreative.ee> 1591359032 +0300 committer Alex Sherman <yul.golem@gmail.com> 1617029320 +0500 CsyncJob: Don't respect IPv6 if nessecary
23 lines
545 B
Ruby
23 lines
545 B
Ruby
class CsyncMailer < ApplicationMailer
|
|
def dnssec_updated(domain:)
|
|
@domain = domain
|
|
emails = contact_emails(domain)
|
|
|
|
subject = default_i18n_subject(domain_name: domain.name)
|
|
mail(to: emails, subject: subject)
|
|
end
|
|
|
|
def dnssec_deleted(domain:)
|
|
@domain = domain
|
|
emails = contact_emails(domain)
|
|
|
|
subject = default_i18n_subject(domain_name: domain.name)
|
|
mail(to: emails, subject: subject)
|
|
end
|
|
|
|
private
|
|
|
|
def contact_emails(domain)
|
|
(domain.contacts.map(&:email) << domain.registrant.email).uniq
|
|
end
|
|
end
|