lib/couchrest/mixins/callbacks.rb
def skip_callback(name, *filters, &block)
        _update_callbacks(name, filters, block) do |callbacks, type, filters, options|
          filters.each do |filter|
            callbacks = send("_#{name}_callback=", callbacks.clone(self))

            filter = callbacks.find {|c| c.matches?(type, filter) }

            if filter && options.any?
              filter.recompile!(options, options[:per_key] || {})
            else
              callbacks.delete(filter)
            end
          end
        end
      end
# 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 skip_callback(name, *filters, &block)
        _update_callbacks(name, filters, block) do |callbacks, type, filters, options|
          filters.each do |filter|
            callbacks = send("_#{name}_callback=", callbacks.clone(self))
            filter = callbacks.find {|c| c.matches?(type, filter) }
            if filter && options.any?
              filter.recompile!(options, options[:per_key] || {})
            else
              callbacks.delete(filter)
            end
          end
        end
      end
def skip_callback ( name , * filters , & block ) _update_callbacks ( name , filters , block ) do | callbacks , type , filters , options | filters . each do | filter | callbacks = send ( "_#{name}_callback=" , callbacks . clone ( self ) ) filter = callbacks . find { | c | c . matches? ( type , filter ) } if filter && options . any? filter . recompile! ( options , options [ :per_key ] || { } ) else callbacks . delete ( filter ) end end end end
Make the _run_save_callbacks method.
Make the _run_save_callbacks method .
name
filters
block