Sha256: 314881f6af0dccfa4d22f7ca370360487ea276981eb27fc4f272d36795bfee1c

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 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 :mailers

    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

5 entries across 5 versions & 1 rubygems

Version Path
actionmailer-4.2.0 lib/action_mailer/delivery_job.rb
actionmailer-4.2.0.rc3 lib/action_mailer/delivery_job.rb
actionmailer-4.2.0.rc2 lib/action_mailer/delivery_job.rb
actionmailer-4.2.0.rc1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.0.beta4 lib/action_mailer/delivery_job.rb