Class: BillingMailer

Inherits:
ActionMailer::Base
  • Object
show all
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(, transaction)
  @account = 
  mail(:to       => .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(, transaction)
  @account = 
  @transaction = transaction
  mail(:to       => .customer.email,
       :subject  => I18n.t(:subject,
                           :scope   => [:saucy, :mailers, :billing_mailer, :receipt],
                           :default => "Subscription receipt"),
       :from     => Saucy::Configuration.mailer_sender)
end