Sha256: e9215c303748848daf85a043ad1f476a75a5e9b16a0790291d4432029f5410a3

Contents?: true

Size: 514 Bytes

Versions: 3

Compression:

Stored size: 514 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_core-4.2.0.rc2 app/mailers/spree/shipment_mailer.rb
spree_core-4.2.0.rc1 app/mailers/spree/shipment_mailer.rb
spree_core-4.2.0.beta app/mailers/spree/shipment_mailer.rb