Sha256: 2a80698c5145362018b699e72b3ed9520e4ab9b59a63328817790b0a6f7065d7

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 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   => [:saucy, :mailers, :billing_mailer, :expiring_tiral],
                             :default => "Your trial is expiring soon"),
         :from     => Saucy::Configuration.mailer_sender)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saucy-0.2.30 app/mailers/billing_mailer.rb
saucy-0.2.29 app/mailers/billing_mailer.rb