Class: Spree::ShipmentMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/spree/shipment_mailer.rb

Instance Method Summary collapse

Instance Method Details

#shipped_email(shipment, resend = false) ⇒ Object



5
6
7
8
9
10
11
# File 'app/mailers/spree/shipment_mailer.rb', line 5

def shipped_email(shipment, resend=false)
  @shipment = shipment
  subject = (resend ? "[#{t(:resend).upcase}] " : "")
  subject += "#{Spree::Config[:site_name]} #{t('shipment_mailer.shipped_email.subject')} ##{shipment.order.number}"
  mail(:to => shipment.order.email,
       :subject => subject)
end