lib/mongoid/interceptable.rb
# Determine if the child should fire the callback.
#
# @example Should the child fire the callback?
#   document.cascadable_child?(:update, doc)
#
# @param [ Symbol ] kind The type of callback.
# @param [ Document ] child The child document.
#
# @return [ true, false ] If the child should fire the callback.
Determine if the child should fire the callback.
Determine if the child should fire the callback .
def cascadable_child?(kind, child, association)
      return false if kind == :initialize || kind == :find || kind == :touch
      return false if kind == :validate && association.validate?
      child.callback_executable?(kind) ? child.in_callback_state?(kind) : false
    end
def cascadable_child? ( kind , child , association ) return false if kind == :initialize || kind == :find || kind == :touch return false if kind == :validate && association . validate? child . callback_executable? ( kind ) ? child . in_callback_state? ( kind ) : false end
Determine if the child should fire the callback.
Determine if the child should fire the callback .
If the child should fire the callback.
If the child should fire the callback .
 true, false 
kind
<not_specific>
child
<not_specific>
association
<not_specific>
<not_specific>
child The child document.
child The child document .
example
Should the child fire the callback. document.cascadable_child?(:update, doc)
Should the child fire the callback . document . cascadable_child? ( : update doc )