Sha256: 04ae97309eac5587a933e0c259ac31859b967707111330aec35a29941e0d9585

Contents?: true

Size: 470 Bytes

Versions: 160

Compression:

Stored size: 470 Bytes

Contents

module Spree
  class ShipmentMailer < BaseMailer
    def shipped_email(shipment, resend = false)
      @shipment = shipment.respond_to?(:id) ? shipment : Spree::Shipment.find(shipment)
      subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '')
      subject += "#{Spree::Store.current.name} #{Spree.t('shipment_mailer.shipped_email.subject')} ##{@shipment.order.number}"
      mail(to: @shipment.order.email, from: from_address, subject: subject)
    end
  end
end

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
spree_core-4.0.9 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.15 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.14 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.8 app/mailers/spree/shipment_mailer.rb
spree_core-3.7.14.1 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.13.1 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.7.1 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.7 app/mailers/spree/shipment_mailer.rb
spree_core-3.7.14 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.13 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.6 app/mailers/spree/shipment_mailer.rb
spree_core-3.7.13 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.5 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.12 app/mailers/spree/shipment_mailer.rb
spree_core-3.7.12 app/mailers/spree/shipment_mailer.rb
spree_core-4.0.4 app/mailers/spree/shipment_mailer.rb
spree_core-3.7.11 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.11 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.10 app/mailers/spree/shipment_mailer.rb
spree_core-4.1.9 app/mailers/spree/shipment_mailer.rb