Sha256: bb4e5468a197e05a288a59df944f909b2a7d722bbd682d185024ace7d09d2287
Contents?: true
Size: 852 Bytes
Versions: 6
Compression:
Stored size: 852 Bytes
Contents
class OrderMailer < ActionMailer::QueueMailer helper "spree/base" def confirm(order, resend = false) @subject = (resend ? "[RESEND] " : "") @subject += Spree::Config[:site_name] + ' ' + 'Order Confirmation #' + order.number @body = {"order" => order} @recipients = order.email @from = Spree::Config[:order_from] @bcc = order_bcc @sent_on = Time.now end def cancel(order) @subject = '[CANCEL]' + Spree::Config[:site_name] + ' Order Confirmation #' + order.number @body = {"order" => order} @recipients = order.email @from = Spree::Config[:order_from] @bcc = order_bcc @sent_on = Time.now end private def order_bcc [Spree::Config[:order_bcc], Spree::Config[:mail_bcc]].delete_if { |email| email.blank? }.uniq end end
Version data entries
6 entries across 6 versions & 2 rubygems