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

Version Path
spree_core-2.1.7 app/mailers/spree/order_mailer.rb
spree_core-2.0.11 app/mailers/spree/order_mailer.rb
spree_core-2.0.10 app/mailers/spree/order_mailer.rb
spree_core-2.1.6 app/mailers/spree/order_mailer.rb
spree_core-2.2.1 app/mailers/spree/order_mailer.rb
spree_core-2.2.0 app/mailers/spree/order_mailer.rb
spree_core-2.1.5 app/mailers/spree/order_mailer.rb
spree_core-2.0.9 app/mailers/spree/order_mailer.rb
spree_core-2.1.4 app/mailers/spree/order_mailer.rb
spree_core-2.0.8 app/mailers/spree/order_mailer.rb
spree_core-2.1.3 app/mailers/spree/order_mailer.rb
spree_core-2.0.7 app/mailers/spree/order_mailer.rb
spree_core-2.1.2 app/mailers/spree/order_mailer.rb
spree_core-2.0.6 app/mailers/spree/order_mailer.rb
spree_core-2.1.1 app/mailers/spree/order_mailer.rb
spree_core-2.0.5 app/mailers/spree/order_mailer.rb
spree_core-2.1.0 app/mailers/spree/order_mailer.rb
spree_core-2.0.4 app/mailers/spree/order_mailer.rb
spree_core-2.0.3 app/mailers/spree/order_mailer.rb
spree_core-2.0.2 app/mailers/spree/order_mailer.rb