Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created December 19, 2013 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willrjmarshall/8032424 to your computer and use it in GitHub Desktop.
Save willrjmarshall/8032424 to your computer and use it in GitHub Desktop.
Spree::OrderMailer.class_eval do
helper HtmlHelper
helper CheckoutHelper
def confirm_email(order, resend = false)
find_order(order)
subject = (resend ? "[#{t(:resend).upcase}] " : '')
subject += "#{Spree::Config[:site_name]} #{t('order_mailer.confirm_email.subject')} ##{@order.number}"
mail(:to => @order.email,
:from => @order.distributor.email || from_address,
:subject => subject,
:cc => "orders@openfoodnetwork.org")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment