Skip to Content Skip to Search

module ActionMailer::Callbacks::ClassMethods

Public instance methods

Defines a callback that will get called right after the message’s delivery method is finished.

Source code GitHub
# File actionmailer/lib/action_mailer/callbacks.rb, line 21
def after_deliver(*filters, &blk)
  set_callback(:deliver, :after, *filters, &blk)
end

Defines a callback that will get called around the message’s deliver method.

Source code GitHub
# File actionmailer/lib/action_mailer/callbacks.rb, line 26
def around_deliver(*filters, &blk)
  set_callback(:deliver, :around, *filters, &blk)
end

Defines a callback that will get called right before the message is sent to the delivery method.

Source code GitHub
# File actionmailer/lib/action_mailer/callbacks.rb, line 15
def before_deliver(*filters, &blk)
  set_callback(:deliver, :before, *filters, &blk)
end

Definition files