internetee-registry/app/mailers/contact_inform_mailer.rb
2022-02-09 15:15:08 +02:00

17 lines
324 B
Ruby

class ContactInformMailer < ApplicationMailer
helper_method :address_processing
def notify(contact:, domain:, subject:)
@contact = contact
@subject = subject
@domain = domain
mail(to: contact.email, subject: subject)
end
private
def address_processing
Contact.address_processing?
end
end