Class: Munificent::Admin::PanicMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/munificent/admin/panic_mailer.rb

Instance Method Summary collapse

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