There's no documentation for this item.
Source Code
# File active_record/callbacks.rb, line 179 def self.included(base) #:nodoc: base.extend Observable [:create_or_update, :valid?, :create, :update, :destroy].each do |method| base.send :alias_method_chain, method, :callbacks end CALLBACKS.each do |method| base.class_eval "def self.\#{method}(*callbacks, &block)\ncallbacks << block if block_given?\nwrite_inheritable_array(\#{method.to_sym.inspect}, callbacks)\nend\n" end end
<code/>and<pre/>for code samples.