Class: Spree::FosdickShipmentMailer

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

Instance Method Summary collapse

Instance Method Details

#order_shipped(shipment) ⇒ Object



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

def order_shipped(shipment)
  @shipment = shipment
  @tracking = shipment.tracking,
  @order_number = shipment.order.number

  mail to: @shipment.order.email, subject: Spree.t('fosdick.order_shipped.subject')
end