Method: CoreExt::Callbacks::ClassMethods#__update_callbacks
- Defined in:
- lib/core_ext/callbacks.rb
#__update_callbacks(name) ⇒ Object
This is used internally to append, prepend and skip callbacks to the CallbackChain.
558 559 560 561 562 563 |
# File 'lib/core_ext/callbacks.rb', line 558 def __update_callbacks(name) #:nodoc: ([self] + CoreExt::DescendantsTracker.descendants(self)).reverse_each do |target| chain = target.get_callbacks name yield target, chain.dup end end |