ActiveSupport::Callbacks::ClassMethods

module ActiveSupport::Callbacks::ClassMethods

Public Instance Methods

define_callbacks(*names) Show source

Define sets of events in the object life cycle that support callbacks.

define_callbacks :validate
define_callbacks :initialize, :save, :destroy
Options
  • :terminator - Determines when a before filter will halt the callback chain, preventing following before and around callbacks from