1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib/action_mailer/delivery_job.rb

12 lines
279 B
Ruby
Raw Normal View History

require 'active_job'
module ActionMailer
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