Module: AcidicJob::Extensions::ActionMailer

Extended by:
ActiveSupport::Concern
Defined in:
lib/acidic_job/extensions/action_mailer.rb

Instance Method Summary collapse

Instance Method Details

#deliver_acidicly(_options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/acidic_job/extensions/action_mailer.rb', line 10

def deliver_acidicly(_options = {})
  job_class = ::ActionMailer::MailDeliveryJob
  job_args = [@mailer_class.name, @action.to_s, "deliver_now", @params, *@args]
  job = job_class.new(job_args)

  AcidicJob::Run.stage!(job)
end