Sha256: 75cbd323bc31d3f3d6ebccc3a3596bd0997fe41d382fdcd59d2745b9e3606df3

Contents?: true

Size: 851 Bytes

Versions: 10

Compression:

Stored size: 851 Bytes

Contents

class Shoppe::OrderMailer < ActionMailer::Base
  
  default :from => "#{Shoppe.config[:store_name]} <#{Shoppe.config[:email_address]}>"
  
  def received(order)
    @order = order
    mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.subject', :default => "Order Confirmation")
  end
  
  def accepted(order)
    @order = order
    mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.accepted', :default => "Order Accepted")
  end
  
  def rejected(order)
    @order = order
    mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.rejected', :default => "Order Rejected")
  end
  
  def shipped(order)
    @order = order
    mail :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.shipped', :default => "Order Shipped")
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shoppe-0.0.14 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.13 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.12 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.11 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.10 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.9 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.8 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.7 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.6 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.5 app/mailers/shoppe/order_mailer.rb