instance method
before_deliver
Ruby on Rails 8.1.2
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 17
def before_deliver(*filters, &blk)
set_callback(:deliver, :before, *filters, &blk)
end
Defined in actionmailer/lib/action_mailer/callbacks.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::Callbacks::ClassMethods