Class: OrderMailerJob
- Inherits:
-
Struct
- Object
- Struct
- OrderMailerJob
- Defined in:
- app/models/job/order_mailer_job.rb
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
Instance Method Summary collapse
Instance Attribute Details
#order ⇒ Object
Returns the value of attribute order
1 2 3 |
# File 'app/models/job/order_mailer_job.rb', line 1 def order @order end |
Instance Method Details
#perform ⇒ Object
2 3 4 5 6 7 |
# File 'app/models/job/order_mailer_job.rb', line 2 def perform OrderMailer.confirmation_for(order).deliver rescue Exception => e Exceptional.context(:order_id => order.id) Exceptional.handle(e, "Could not send order confirmation for order") end |