After upgrading to Rails 6 I am noticing that default mailer's .deliver_later
is not working the same as in Rails 5.
Configuration:
config.active_job.queue_adapter = :inline
When running Mailer.register_email(...).deliver_later
- nothing is stored in ActionMailer::Base.deliveries
. This array gets filled if I run perform_enqueued_jobs
- it seams like queue_adapter = :inline
doesn't work the way I expect it to work.
If I run Mailer.send(...).deliver_now
then ActionMailer::Base.deliveries
has proper value in it.
Any idea why this is happening and how to solve this?