instance method
enqueue_delivery
Ruby on Rails edge
Since v4.2.11.3 Private — implementation detail, not part of the public APISignature
enqueue_delivery(delivery_method, options = {})
No documentation comment.
Parameters
-
delivery_methodreq -
optionsopt = {}
Source
# File actionmailer/lib/action_mailer/message_delivery.rb, line 166
def enqueue_delivery(delivery_method, options = {})
if processed?
::Kernel.raise ALREADY_PROCESSED_MESSAGE
else
@mailer_class.delivery_job.set(options).perform_later(
@mailer_class.name, @action.to_s, delivery_method.to_s, args: @args)
end
end
Defined in actionmailer/lib/action_mailer/message_delivery.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::MessageDelivery