Class: BillingMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- BillingMailer
- Defined in:
- app/mailers/billing_mailer.rb
Instance Method Summary collapse
Instance Method Details
#problem(account, transaction) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/mailers/billing_mailer.rb', line 12 def problem(account, transaction) @account = account mail(:to => account.customer.email, :subject => I18n.t(:subject, :scope => [:saucy, :mailers, :billing_mailer, :problem], :default => "Problem with subscription billing"), :from => Saucy::Configuration.mailer_sender) end |
#receipt(account, transaction) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/mailers/billing_mailer.rb', line 2 def receipt(account, transaction) @account = account @transaction = transaction mail(:to => account.customer.email, :subject => I18n.t(:subject, :scope => [:saucy, :mailers, :billing_mailer, :receipt], :default => "Subscription receipt"), :from => Saucy::Configuration.mailer_sender) end |