Sha256: 941e3497fc4dc6c2456f3b40527b2f44104445441901c1237e1b4262f9a76db4

Contents?: true

Size: 636 Bytes

Versions: 21

Compression:

Stored size: 636 Bytes

Contents

class OrderMailer < ActionMailer::Base
  helper "spree/base"

  def confirm_email(order, resend=false)
    @order = order
    subject = (resend ? "[RESEND] " : "")
    subject += "#{Spree::Config[:site_name]} #{t('subject', :scope =>'order_mailer.confirm_email')} ##{order.number}"
    mail(:to => order.email,
         :subject => subject)
  end

  def cancel_email(order, resend=false)
    @order = order
    subject = (resend ? "[RESEND] " : "")
    subject += "#{Spree::Config[:site_name]} #{t('subject', :scope => 'order_mailer.cancel_email')} ##{order.number}"
    mail(:to => order.email,
         :subject => subject)
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/mailers/order_mailer.rb
My-Commerce_core-1.1.0 app/mailers/order_mailer.rb
My-Commerce_core-1.0.0 app/mailers/order_mailer.rb
MyCommerceapi-1.0.0 core/app/mailers/order_mailer.rb
MyCommerce-0.0.3 core/app/mailers/order_mailer.rb
rfcommerce_core-0.0.3 app/mailers/order_mailer.rb
spree_core-0.60.6 app/mailers/order_mailer.rb
spree_core-0.60.5 app/mailers/order_mailer.rb
spree_core-0.50.4 app/mailers/order_mailer.rb
spree_core-0.60.4 app/mailers/order_mailer.rb
spree_core-0.50.3 app/mailers/order_mailer.rb
spree_core-0.60.3 app/mailers/order_mailer.rb
spree_core-0.60.2 app/mailers/order_mailer.rb
spree_core-0.70.0.rc2 app/mailers/order_mailer.rb
spree_core-0.70.RC1 app/mailers/order_mailer.rb
spree_core-0.60.1 app/mailers/order_mailer.rb
spree_core-0.60.0 app/mailers/order_mailer.rb
spree_core-0.60.0.RC1 app/mailers/order_mailer.rb
spree_core-0.50.2 app/mailers/order_mailer.rb
spree_core-0.50.1 app/mailers/order_mailer.rb