Sha256: c4dc1fccd66ad075cc32c894680aef156bd1c6e5a8ab2def3da21e48fd069b57
Contents?: true
Size: 799 Bytes
Versions: 43
Compression:
Stored size: 799 Bytes
Contents
module Spree class OrderMailer < BaseMailer def confirm_email(order, resend = false) @order = order.respond_to?(:id) ? order : Spree::Order.find(order) subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{Spree::Config[:site_name]} #{Spree.t('order_mailer.confirm_email.subject')} ##{@order.number}" mail(to: @order.email, from: from_address, subject: subject) end def cancel_email(order, resend = false) @order = order.respond_to?(:id) ? order : Spree::Order.find(order) subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{Spree::Config[:site_name]} #{Spree.t('order_mailer.cancel_email.subject')} ##{@order.number}" mail(to: @order.email, from: from_address, subject: subject) end end end
Version data entries
43 entries across 43 versions & 1 rubygems