instance method
before_deliver
Ruby on Rails 7.2.3
Since v7.1.6Signature
before_deliver(*filters, &blk)
Defines a callback that will get called right before the message is sent to the delivery method.
Parameters
-
filtersrest -
blkblock
Source
# File actionmailer/lib/action_mailer/callbacks.rb, line 15
def before_deliver(*filters, &blk)
set_callback(:deliver, :before, *filters, &blk)
end
Defined in actionmailer/lib/action_mailer/callbacks.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Callbacks::ClassMethods