Class: ActionMailer::DeliveryJob

Inherits:
ActiveJob::Base show all
Defined in:
actionmailer/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.

Constant Summary

Constants included from ActiveSupport::Callbacks

ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

#append_features, #class_methods, extended, #included

Methods included from ActiveSupport::Callbacks

#run_callbacks

Methods included from ActiveJob::Execution

#perform_now

Methods included from ActiveSupport::Rescuable

#handler_for_rescue, #rescue_with_handler

Methods included from ActiveJob::Enqueuing

#enqueue, #retry_job

Methods included from ActiveJob::QueueName

#queue_name

Methods included from ActiveJob::Core

#initialize, #serialize

Instance Method Details

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

:nodoc:


9
10
11
# File 'actionmailer/lib/action_mailer/delivery_job.rb', line 9

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