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