mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
17 lines
324 B
Ruby
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
|