Sha256: 9cb252d46499d9672e99ff3bc8d18c1fee959662be9c1c46c8a9fb8929b8ae32

Contents?: true

Size: 1006 Bytes

Versions: 20

Compression:

Stored size: 1006 Bytes

Contents

module Shoppe
  class OrderMailer < ActionMailer::Base
  
    def received(order)
      @order = order
      mail :from => Shoppe.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.subject', :default => "Order Confirmation")
    end
  
    def accepted(order)
      @order = order
      mail :from => Shoppe.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.accepted', :default => "Order Accepted")
    end
  
    def rejected(order)
      @order = order
      mail :from => Shoppe.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.rejected', :default => "Order Rejected")
    end
  
    def shipped(order)
      @order = order
      mail :from => Shoppe.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.shipped', :default => "Order Shipped")
    end
    
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
shoppe-1.1.2 app/mailers/shoppe/order_mailer.rb
shoppe-1.1.1 app/mailers/shoppe/order_mailer.rb
shoppe-1.1.0 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.9 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.8 app/mailers/shoppe/order_mailer.rb
kylekthompson-shoppe-1.0.7 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.7 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.6 app/mailers/shoppe/order_mailer.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/mailers/shoppe/order_mailer.rb
shoppe-1.0.5 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.3 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.2 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.1 app/mailers/shoppe/order_mailer.rb
shoppe-1.0.0 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.21 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.20 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.19 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.18 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.17 app/mailers/shoppe/order_mailer.rb
shoppe-0.0.16 app/mailers/shoppe/order_mailer.rb