Sha256: d47984c2c0a1f9ac81aa72e7ef2ba47c529c6ffd7d8da7ddf54875c128c2b786
Contents?: true
Size: 1.82 KB
Versions: 4
Compression:
Stored size: 1.82 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"), :reply_to => Saucy::Configuration.support_email_address, :from => Saucy::Configuration.support_email_address) 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"), :reply_to => Saucy::Configuration.support_email_address, :from => Saucy::Configuration.support_email_address) end def expiring_trial(account) @account = account mail(:to => account.admin_emails, :subject => I18n.t(:subject, :scope => [:billing_mailer, :expiring_trial], :default => "Your trial is expiring soon"), :reply_to => Saucy::Configuration.support_email_address, :from => Saucy::Configuration.manager_email_address) 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")), :reply_to => Saucy::Configuration.support_email_address, :from => Saucy::Configuration.manager_email_address) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.7.3 | app/mailers/billing_mailer.rb |
saucy-0.7.2 | app/mailers/billing_mailer.rb |
saucy-0.7.1 | app/mailers/billing_mailer.rb |
saucy-0.7.0 | app/mailers/billing_mailer.rb |