Class: OrderMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- OrderMailer
- Defined in:
- app/mailers/order_mailer.rb
Instance Method Summary collapse
Instance Method Details
#confirmation_for(order) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/mailers/order_mailer.rb', line 4 def confirmation_for(order) @order = order @person = order.person = Hash.new.tap do |o| o[:to] = @person.email o[:from] = from(@order) o[:subject] = "Your Order" if order.contact_email.present? o[:reply_to] = order.contact_email end end mail() end |