Sha256: d45e580d789bd0cf1feb0293e3c325c010e51499ca068a74171da26bd824b38f
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
module Spree class ReimbursementMailer < BaseMailer def reimbursement_email(reimbursement, resend = false) @reimbursement = reimbursement.respond_to?(:id) ? reimbursement : Spree::Reimbursement.find(reimbursement) @order = @reimbursement.order current_store = @reimbursement.store || Spree::Store.current subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{current_store.name} #{Spree.t('reimbursement_mailer.reimbursement_email.subject')} ##{@order.number}" mail(to: @order.email, from: current_store.mail_from_address, subject: subject) end end end
Version data entries
3 entries across 3 versions & 1 rubygems