Class: HolyCow::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- HolyCow::Mailer
- Defined in:
- lib/holy_cow/mailer.rb
Instance Method Summary collapse
Instance Method Details
#notification(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/holy_cow/mailer.rb', line 5 def notification(*args) @subject = args.shift || "Somebody did something!" @things = args || [] mail({ from: HolyCow::from_address, to: HolyCow::recipients, subject: "[Holy Cow] #{@subject}" }) do |format| format.html format.text end end |