123456789_123456789_123456789_123456789_123456789_

Module: ActionMailer::Callbacks::ClassMethods

Relationships & Source Files
Defined in: actionmailer/lib/action_mailer/callbacks.rb

Instance Method Summary

Instance Method Details

#after_deliver(*filters, &blk)

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

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/callbacks.rb', line 25

def after_deliver(*filters, &blk)
  _insert_callbacks(filters, blk) do |name, options|
    set_callback(:deliver, :after, name, options)
  end
end

#around_deliver(*filters, &blk)

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

[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/callbacks.rb', line 32

def around_deliver(*filters, &blk)
  _insert_callbacks(filters, blk) do |name, options|
    set_callback(:deliver, :around, name, options)
  end
end

#before_deliver(*filters, &blk)

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

[ GitHub ]

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

def before_deliver(*filters, &blk)
  _insert_callbacks(filters, blk) do |name, options|
    set_callback(:deliver, :before, name, options)
  end
end

#internal_methods

This method is for internal use only.
[ GitHub ]

  
# File 'actionmailer/lib/action_mailer/callbacks.rb', line 38

def internal_methods # :nodoc:
  super.concat(DEFAULT_INTERNAL_METHODS)
end