Class: ActionMailer::DeliveryJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ActionMailer::DeliveryJob
- Defined in:
- lib/action_mailer/delivery_job.rb
Overview
The ActionMailer::DeliveryJob
class is used when you want to send emails outside of the request-response cycle.
Exceptions are rescued and handled by the mailer class.
Instance Method Summary collapse
Instance Method Details
#perform(mailer, mail_method, delivery_method, *args) ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/action_mailer/delivery_job.rb', line 13 def perform(mailer, mail_method, delivery_method, *args) #:nodoc: mailer.constantize.public_send(mail_method, *args).send(delivery_method) end |