Sha256: e4eea673b0661bc690d72fee491fa32ade23920a6a78c9fbe5b4c07aa8c30bce
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
class BillingMailer < ActionMailer::Base 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 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 def expiring_trial(account) @account = account mail(:to => account.customer.email, :subject => I18n.t(:subject, :scope => [:billing_mailer, :expiring_tiral], :default => "Your trial is expiring soon"), :from => Saucy::Configuration.mailer_sender) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.2.31 | app/mailers/billing_mailer.rb |