diff options
author | Matthew Mongeau <halogenandtoast@gmail.com> | 2017-06-15 16:12:44 +0900 |
---|---|---|
committer | Matthew Mongeau <halogenandtoast@gmail.com> | 2017-06-15 16:41:23 +0900 |
commit | d9bbde09fc57b29b889baadda18da943428fb06a (patch) | |
tree | ef40e7ea76e823d5562ada434a51501e5affcc28 /actionmailer/CHANGELOG.md | |
parent | f2af91a7908d3474746e20781a3118379189a7aa (diff) | |
download | rails-d9bbde09fc57b29b889baadda18da943428fb06a.tar.gz rails-d9bbde09fc57b29b889baadda18da943428fb06a.tar.bz2 rails-d9bbde09fc57b29b889baadda18da943428fb06a.zip |
Allow mailers to configure their delivery job
Setting delivery_job on a mailer class will cause MessageDelivery to use
the specified job instead of ActionMailer::DeliveryJob:
class MyMailer < ApplicationMailer
self.delivery_job = MyCustomDeliveryJob
...
end
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r-- | actionmailer/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index e488d867de..83067dfd38 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1 +1,11 @@ +* Allow ActionMailer classes to configure their delivery job + + class MyMailer < ApplicationMailer + self.delivery_job = MyCustomDeliveryJob + + ... + end + + *Matthew Mongeau* + Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionmailer/CHANGELOG.md) for previous changes. |