Method: ActiveSupport::Callbacks::ClassMethods#__update_callbacks

Defined in:
activesupport/lib/active_support/callbacks.rb

#__update_callbacks(name) ⇒ Object

This is used internally to append, prepend and skip callbacks to the CallbackChain.



686
687
688
689
690
691
# File 'activesupport/lib/active_support/callbacks.rb', line 686

def __update_callbacks(name) # :nodoc:
  self.descendants.prepend(self).reverse_each do |target|
    chain = target.get_callbacks name
    yield target, chain.dup
  end
end