Module: ActionMailer::Callbacks::ClassMethods

Defined in:
lib/action_mailer/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#after_deliver(*filters, &blk) ⇒ Object

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



21
22
23
# File 'lib/action_mailer/callbacks.rb', line 21

def after_deliver(*filters, &blk)
  set_callback(:deliver, :after, *filters, &blk)
end

#around_deliver(*filters, &blk) ⇒ Object

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



26
27
28
# File 'lib/action_mailer/callbacks.rb', line 26

def around_deliver(*filters, &blk)
  set_callback(:deliver, :around, *filters, &blk)
end

#before_deliver(*filters, &blk) ⇒ Object

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



15
16
17
# File 'lib/action_mailer/callbacks.rb', line 15

def before_deliver(*filters, &blk)
  set_callback(:deliver, :before, *filters, &blk)
end