Class: Locomotive::Ecommerce::PurchaseMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/locomotive/ecommerce/purchase_mailer.rb

Instance Method Summary collapse

Instance Method Details

#purchase_confirmation(user, purchase) ⇒ Object

Subject can be set in your I18n file at config/locales/en.yml with the following lookup:

en.purchase_mailer.purchase_confirmation.subject


11
12
13
14
15
16
# File 'app/mailers/locomotive/ecommerce/purchase_mailer.rb', line 11

def purchase_confirmation(user, purchase)
  @purchase = purchase
  @contact = Engine.config_or_default('contact')
  @shop_name = Engine.config_or_default('shop_name')
  mail to: user.email, subject: "Purchase Confirmation"
end