Sha256: 00fa866408b6df515cf3f822fbfa27e1d40da9f683de1e6b780a151aa2c500c0
Contents?: true
Size: 686 Bytes
Versions: 4
Compression:
Stored size: 686 Bytes
Contents
class OrderMailer < ActionMailer::Base helper "rails_cart/base" def confirm(order, resend = false) @subject = (resend ? "[RESEND] " : "") @subject += 'Order Confirmation #' + order.number @body = {"order" => order} @recipients = order.user.email @from = ORDER_FROM @bcc = ORDER_BCC unless ORDER_BCC.empty? or resend @sent_on = Time.now end def cancel(order) @subject = '[CANCEL] Order Confirmation #' + order.number @body = {"order" => order} @recipients = order.user.email @from = ORDER_FROM @bcc = ORDER_BCC unless ORDER_BCC.empty? @sent_on = Time.now end end
Version data entries
4 entries across 4 versions & 2 rubygems