mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
16 lines
292 B
Ruby
16 lines
292 B
Ruby
class ContactInformMailer < ApplicationMailer
|
|
helper_method :address_processing
|
|
|
|
def notify(contact:, subject:)
|
|
@contact = email
|
|
@subject = subject
|
|
|
|
mail(to: contact.email, subject: subject)
|
|
end
|
|
|
|
private
|
|
|
|
def address_processing
|
|
Contact.address_processing?
|
|
end
|
|
end
|