Sha256: e01b2f6c5b557745418d82f68925ae9012e1f2b0635df7b42065671806dc97a9
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 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_trial], :default => "Your trial is expiring soon"), :from => Saucy::Configuration.mailer_sender) end def new_unactivated(account) @account = account mail(:to => account.admin_emails, :subject => I18n.t(:subject, :scope => [:billing_mailer, :new_unactivated], :default => "A check in from %{app_name}", :app_name => t("app_name")), :from => Saucy::Configuration.mailer_sender) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.2.33 | app/mailers/billing_mailer.rb |
saucy-0.2.32 | app/mailers/billing_mailer.rb |