rails/rails — pull request #16549 by cristianbica (2014-08-18 23:31:01+00:00)
Title: Allow config options to deliver all emails async (through activejob)

By setting config.action_mailer.deliver_all_emails_later to true all
emails will be sent trough activejob (a call to `deliver` will be
forwarded to `deliver_later`).

This is very usefull when people will adopt activejob. Emails are sent
from a lot of places in the code and nobody wants to search for them.
There are also emails sent from gems (ex: devise) that needs to be
handled.