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