Class: ActionMailer::DeliveryJob

Inherits:
ActiveJob::Base
  • Object
show all
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.

Direct Known Subclasses

Parameterized::DeliveryJob

Instance Method Summary collapse

Instance Method Details

#perform(mailer, mail_method, delivery_method, *args) ⇒ Object

:nodoc:



23
24
25
# File 'lib/action_mailer/delivery_job.rb', line 23

def perform(mailer, mail_method, delivery_method, *args) #:nodoc:
  mailer.constantize.public_send(mail_method, *args).send(delivery_method)
end