module AbstractController::Callbacks::ClassMethods

def _insert_callbacks(callbacks, block = nil)

* options - A hash of options to be used when adding the callback.
* name - The callback to be added.
==== Block Parameters

* block - A proc that should be added to the callbacks.
options hash as the last parameter.
* callbacks - An array of callbacks, with an optional
==== Parameters

the normalization across several methods that use it.
then call the block with each callback. This allows us to abstract
Take callback names and an optional callback proc, normalize them,
def _insert_callbacks(callbacks, block = nil)
  options = callbacks.extract_options!
  callbacks.push(block) if block
  options[:filters] = callbacks
  _normalize_callback_options(options)
  options.delete(:filters)
  callbacks.each do |callback|
    yield callback, options
  end
end