Sha256: 095b235623558221bdf51cfd23109d7e240fa16b4c2732f20a6eae46f1eebb57

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

module Tang
  class SubscriptionMailer < ApplicationMailer
    add_template_helper(Tang::ApplicationHelper)
    default from: Tang.admin_email

    def upgraded(subscription)
      @subscription = subscription
      mail(to: @subscription.customer.email, subject: "Oh, wow! Excited to have you on our #{@subscription.plan.name} plan!")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tang-0.2.0 app/mailers/tang/subscription_mailer.rb
tang-0.1.0 app/mailers/tang/subscription_mailer.rb
tang-0.0.9 app/mailers/tang/subscription_mailer.rb
tang-0.0.8 app/mailers/tang/subscription_mailer.rb