Sha256: ce82853921b41b5a8c45f6f7a9a20a488b4409c455707f5ee36c2d2a144da3fe

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

require 'active_job'

module ActionMailer
  # The <tt>ActionMailer::DeliveryJob</tt> class is used when you
  # want to send emails outside of the request-response cycle.
  class DeliveryJob < ActiveJob::Base # :nodoc:
    queue_as { ActionMailer::Base.deliver_later_queue_name }

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
actionmailer-5.0.0.racecar1 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.rc1 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.beta4 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.beta3 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.beta2 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.beta1.1 lib/action_mailer/delivery_job.rb
actionmailer-5.0.0.beta1 lib/action_mailer/delivery_job.rb