Permalink
Browse files

Merge pull request #29471 from halogenandtoast/mm-mailer-delayed-job-…

…documentation

Document setting the delivery_job for ActionMailer [ci skip]
  • Loading branch information...
guilleiguaran committed Jun 16, 2017
2 parents e57d8d0 + 425e351 commit 7dfc5350ec1c6dbc114671785f4626dd04800752
Showing with 16 additions and 0 deletions.
  1. +16 −0 actionmailer/lib/action_mailer/message_delivery.rb
@@ -51,6 +51,14 @@ def processed?
# 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 @@ def deliver_later!(options = {})
# 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.

0 comments on commit 7dfc535

Please sign in to comment.