instance method
processed_mailer
Ruby on Rails 7.1.6
Since v5.2.8.1 PrivateSignature
processed_mailer()
Returns the processed Mailer instance. We keep this instance on hand so we can run callbacks and delegate exception handling to it.
Source
# File actionmailer/lib/action_mailer/message_delivery.rb, line 134
def processed_mailer
@processed_mailer ||= @mailer_class.new.tap do |mailer|
mailer.process @action, *@args
end
end
Defined in actionmailer/lib/action_mailer/message_delivery.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::MessageDelivery