lib/mongoid/interceptable.rb
# Run the callbacks for the document. This overrides active support's
# functionality to cascade callbacks to embedded documents that have been
# flagged as such.
#
# @example Run the callbacks.
#   run_callbacks :save do
#     save!
#   end
#
# @param [ Symbol ] kind The type of callback to execute.
# @param [ Array ] *args Any options.
#
# @return [ Document ] The document
#
# @since 2.3.0
Run the callbacks for the document. This overrides active support's
functionality to cascade callbacks to embedded documents that have been
flagged as such.
Run the callbacks for the document . This overrides active support ' s functionality to cascade callbacks to embedded documents that have been flagged as such .
def run_callbacks(kind, *args, &block)
      cascadable_children(kind).each do |child|
        unless child.run_callbacks(child_callback_type(kind, child), *args)
          return false
        end
      end
      callback_executable?(kind) ? super(kind, *args, &block) : true
    end
def run_callbacks ( kind , * args , & block ) cascadable_children ( kind ) . each do | child | unless child . run_callbacks ( child_callback_type ( kind , child ) , * args ) return false end end callback_executable? ( kind ) ? super ( kind , * args , & block ) : true end
Run the callbacks for the document.
Run the callbacks for the document .
None
 Document 
kind
args
block
args Any options.
args Any options .
example
Run the callbacks. run_callbacks :save do save. end
Run the callbacks . run_callbacks : save do save . end
since
None