Class: Shoppe::OrderMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Shoppe::OrderMailer
- Defined in:
- app/mailers/shoppe/order_mailer.rb
Instance Method Summary collapse
- #accepted(order) ⇒ Object
- #received(order) ⇒ Object
- #rejected(order) ⇒ Object
- #shipped(order) ⇒ Object
Instance Method Details
#accepted(order) ⇒ Object
9 10 11 12 |
# File 'app/mailers/shoppe/order_mailer.rb', line 9 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 |
#received(order) ⇒ Object
4 5 6 7 |
# File 'app/mailers/shoppe/order_mailer.rb', line 4 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 |
#rejected(order) ⇒ Object
14 15 16 17 |
# File 'app/mailers/shoppe/order_mailer.rb', line 14 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 |
#shipped(order) ⇒ Object
19 20 21 22 |
# File 'app/mailers/shoppe/order_mailer.rb', line 19 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 |