Class: Munificent::Admin::PanicMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- Munificent::Admin::PanicMailer
- Defined in:
- app/mailers/munificent/admin/panic_mailer.rb
Instance Method Summary collapse
-
#missing_key(donator, game) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:.
Instance Method Details
#missing_key(donator, game) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:
en.panic_mailer.missing_key.subject
9 10 11 12 13 14 15 16 |
# File 'app/mailers/munificent/admin/panic_mailer.rb', line 9 def missing_key(donator, game) return if User.none? @donator = donator @game = game mail to: User.pluck(:email_address) end |