Module: ActionMailer::Callbacks::ClassMethods
- Defined in:
- lib/action_mailer/callbacks.rb
Instance Method Summary collapse
-
#after_deliver(*filters, &blk) ⇒ Object
Defines a callback that will get called right after the message’s delivery method is finished.
-
#around_deliver(*filters, &blk) ⇒ Object
Defines a callback that will get called around the message’s deliver method.
-
#before_deliver(*filters, &blk) ⇒ Object
Defines a callback that will get called right before the message is sent to the delivery method.
-
#internal_methods ⇒ Object
:nodoc:.
Instance Method Details
#after_deliver(*filters, &blk) ⇒ Object
Defines a callback that will get called right after the message’s delivery method is finished.
23 24 25 |
# File 'lib/action_mailer/callbacks.rb', line 23 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.
28 29 30 |
# File 'lib/action_mailer/callbacks.rb', line 28 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.
17 18 19 |
# File 'lib/action_mailer/callbacks.rb', line 17 def before_deliver(*filters, &blk) set_callback(:deliver, :before, *filters, &blk) end |
#internal_methods ⇒ Object
:nodoc:
32 33 34 |
# File 'lib/action_mailer/callbacks.rb', line 32 def internal_methods # :nodoc: super.concat(DEFAULT_INTERNAL_METHODS) end |