From aa49b7808e824c43eb92386be11bfefdf3b4c0f4 Mon Sep 17 00:00:00 2001 From: MartinFesneau <62666031+MartinFesneau@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:29:58 +0200 Subject: [PATCH] Update action_mailer.rb Use ActionMailer::Base.delivery_job for those who customize their mail delivery job name. ```ruby config.action_mailer.delivery_job = 'MyCustomMailDeliveryJob' ``` --- lib/acidic_job/extensions/action_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acidic_job/extensions/action_mailer.rb b/lib/acidic_job/extensions/action_mailer.rb index 45006f8..a340a3f 100644 --- a/lib/acidic_job/extensions/action_mailer.rb +++ b/lib/acidic_job/extensions/action_mailer.rb @@ -8,7 +8,7 @@ module ActionMailer extend ActiveSupport::Concern def deliver_acidicly(_options = {}) - job_class = ::ActionMailer::MailDeliveryJob + job_class = ::ActionMailer::Base.delivery_job job_args = [@mailer_class.name, @action.to_s, "deliver_now", @params, *@args] job = job_class.new(job_args)