1 2 3 4 5 6 7 8 9 10 11
module ActionMailer module DeliverLater class Job < ActiveJob::Base queue_as :mailers def perform(mailer, mail_method, delivery_method, *args) mailer.constantize.send(mail_method, *args).send(delivery_method) end end end end