Class: PowerShop::OrderNotifications
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- PowerShop::OrderNotifications
- Defined in:
- app/mailers/power_shop/order_notifications.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#for_admin(order) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/mailers/power_shop/order_notifications.rb', line 5 def for_admin(order) @order = order mail( to: admin_emails, subject: 'На сайте оформлен заказ', content_type: "text/html" ) end |
#for_user(order, user_email) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/mailers/power_shop/order_notifications.rb', line 14 def for_user(order, user_email) @order = order mail( to: user_email, subject: 'Спасибо за заказ', content_type: "text/html" ) end |