Class: Piggybak::Notifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/piggybak/notifier.rb

Instance Method Summary collapse

Instance Method Details

#order_notification(order) ⇒ Object



6
7
8
9
10
11
# File 'app/mailers/piggybak/notifier.rb', line 6

def order_notification(order)
  @order = order

  mail(:to => order.email,
       :subject => "Order ##{@order.id}")
end