mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
062cbd18dd
This reverts commitf2a8c23654
, reversing changes made to3046c9bbe1
.
13 lines
448 B
Ruby
13 lines
448 B
Ruby
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
|