Class: UserNotifier::Mailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/user_notifier/mailer.rb

Instance Method Summary collapse

Instance Method Details

#notify(notification) ⇒ Object



4
5
6
7
8
9
10
11
# File 'app/mailers/user_notifier/mailer.rb', line 4

def notify(notification)
  @notification = notification

  I18n.with_locale @notification.locale do
    configure_xsmtp_headers if UserNotifier.use_xsmtp_api
    mail(mail_attributes)
  end
end