app/mailers/piggybak/notifier.rb in piggybak-0.3.2 vs app/mailers/piggybak/notifier.rb in piggybak-0.4.0
- old
+ new
@@ -1,11 +1,12 @@
module Piggybak
class Notifier < ActionMailer::Base
- default :from => Piggybak.config.email_sender
+ default :from => Piggybak.config.email_sender,
+ :cc => Piggybak.config.order_cc
def order_notification(order)
@order = order
-
+
mail(:to => order.email,
:subject => "Order ##{@order.id}")
end
end
end