diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2017-06-15 20:17:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-15 20:17:02 -0500 |
commit | 7dfc5350ec1c6dbc114671785f4626dd04800752 (patch) | |
tree | f1115b4e25d3d8478837d823812e190765404a7e /actionmailer | |
parent | e57d8d090d5d6860e3a5bb3257d6aed5b644ea25 (diff) | |
parent | 425e351a5e6e9a25237bf0fcc546170c753922be (diff) | |
download | rails-7dfc5350ec1c6dbc114671785f4626dd04800752.tar.gz rails-7dfc5350ec1c6dbc114671785f4626dd04800752.tar.bz2 rails-7dfc5350ec1c6dbc114671785f4626dd04800752.zip |
Merge pull request #29471 from halogenandtoast/mm-mailer-delayed-job-documentation
Document setting the delivery_job for ActionMailer [ci skip]
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/action_mailer/message_delivery.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/message_delivery.rb b/actionmailer/lib/action_mailer/message_delivery.rb index 595646d002..3295511ddc 100644 --- a/actionmailer/lib/action_mailer/message_delivery.rb +++ b/actionmailer/lib/action_mailer/message_delivery.rb @@ -51,6 +51,14 @@ module ActionMailer # Notifier.welcome(User.first).deliver_later!(wait: 1.hour) # Notifier.welcome(User.first).deliver_later!(wait_until: 10.hours.from_now) # + # By default, the email will be enqueued using ActionMailer::DeliveryJob. Each + # ActionMailer::Base class can specify the job to use by setting the class variable + # +delivery_job+. + # + # class AccountRegistrationMailer < ApplicationMailer + # self.delivery_job = RegistrationDeliveryJob + # end + # # Options: # # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay @@ -67,6 +75,14 @@ module ActionMailer # Notifier.welcome(User.first).deliver_later(wait: 1.hour) # Notifier.welcome(User.first).deliver_later(wait_until: 10.hours.from_now) # + # By default, the email will be enqueued using ActionMailer::DeliveryJob. Each + # ActionMailer::Base class can specify the job to use by setting the class variable + # +delivery_job+. + # + # class AccountRegistrationMailer < ApplicationMailer + # self.delivery_job = RegistrationDeliveryJob + # end + # # Options: # # * <tt>:wait</tt> - Enqueue the email to be delivered with a delay. |