lib/couchrest/mixins/callbacks.rb
# Make the _run_save_callbacks method. The generated method takes
# a block that it'll yield to. It'll call the before and around filters
# in order, yield the block, and then run the after filters.
# 
# _run_save_callbacks do
#   save
# end
#
# The _run_save_callbacks method can optionally take a key, which
# will be used to compile an optimized callback method for each
# key. See #define_callbacks for more information.
Make the _run_save_callbacks method. The generated method takes
a block that it'll yield to. It'll call the before and around filters
in order, yield the block, and then run the after filters.

_run_save_callbacks do
save
end

The _run_save_callbacks method can optionally take a key, which
will be used to compile an optimized callback method for each
key. See #define_callbacks for more information.
Make the _run_save_callbacks method . The generated method takes a block that it ' ll yield to . It ' ll call the before and around filters in order yield the block and then run the after filters . _run_save_callbacks do save end The _run_save_callbacks method can optionally take a key which will be used to compile an optimized callback method for each key . See #define_callbacks for more information .
def _alias_callbacks(callbacks, block)
        options = callbacks.last.is_a?(Hash) ? callbacks.pop : {}
        callbacks.push(block) if block
        callbacks.each do |callback|
          yield callback, options
        end
      end
def _alias_callbacks ( callbacks , block ) options = callbacks . last . is_a? ( Hash ) ? callbacks . pop : { } callbacks . push ( block ) if block callbacks . each do | callback | yield callback , options end end
Make the _run_save_callbacks method.
Make the _run_save_callbacks method .
callbacks
block