Sha256: 79724d074abf995d3e73ef417cf0ef0f99ed27e0059229f59362f4f635c120d5

Contents?: true

Size: 410 Bytes

Versions: 44

Compression:

Stored size: 410 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

44 entries across 43 versions & 8 rubygems

Version Path
actionmailer-4.2.11.3 lib/action_mailer/delivery_job.rb
actionmailer-4.2.11.2 lib/action_mailer/delivery_job.rb
actionmailer-4.2.11.1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.11 lib/action_mailer/delivery_job.rb
actionmailer-4.2.10 lib/action_mailer/delivery_job.rb
actionmailer-4.2.10.rc1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.9 lib/action_mailer/delivery_job.rb
actionmailer-4.2.9.rc2 lib/action_mailer/delivery_job.rb
actionmailer-4.2.9.rc1 lib/action_mailer/delivery_job.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionmailer-4.2.8/lib/action_mailer/delivery_job.rb
actionmailer-4.2.8 lib/action_mailer/delivery_job.rb
actionmailer-4.2.8.rc1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.7.1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.7 lib/action_mailer/delivery_job.rb
actionmailer-4.2.7.rc1 lib/action_mailer/delivery_job.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.6/lib/action_mailer/delivery_job.rb
actionmailer-4.2.6 lib/action_mailer/delivery_job.rb
actionmailer-4.2.6.rc1 lib/action_mailer/delivery_job.rb
actionmailer-4.2.5.2 lib/action_mailer/delivery_job.rb
activejob-lock-0.0.2 rails/actionmailer/lib/action_mailer/delivery_job.rb