prepend_after_action

prepend_after_action(names, block) Instance Public methods Prepend a callback after actions. See #_insert_callbacks for parameter details. Aliased as prepend_after_filter.

before_action

before_action(names, block) Instance Public methods Append a callback before actions. See #_insert_callbacks for parameter details. Aliased as before_filter.

around_action

around_action(names, block) Instance Public methods Append a callback around actions. See #_insert_callbacks for parameter details. Aliased as around_filter.

append_before_action

append_before_action(names, block) Instance Public methods Append a callback before actions. See #_insert_callbacks for parameter details. Aliased as append_before_filter.

append_around_action

append_around_action(names, block) Instance Public methods Append a callback around actions. See #_insert_callbacks for parameter details. Aliased as append_around_filter.

append_after_action

append_after_action(names, block) Instance Public methods Append a callback after actions. See #_insert_callbacks for parameter details. Aliased as append_after_filter.

after_action

after_action(names, block) Instance Public methods Append a callback after actions. See #_insert_callbacks for parameter details. Aliased as after_filter.

_normalize_callback_options

_normalize_callback_options(options) Instance Public methods If :only or :except are used, convert the options into the :unless and :if options of ActiveSupport::Callbacks. The basic idea is that :only => :index gets converted to :if => proc {|c| c.action_name == âindexâ }. Options only - The callback should be run only for this action except - The callback should be run for all actions except this action

_insert_callbacks

_insert_callbacks(callbacks, block = nil) Instance Public methods Take callback names and an optional callback proc, normalize them, then call the block with each callback. This allows us to abstract the normalization across several methods that use it. Parameters callbacks - An array of callbacks, with an optional options hash as the last parameter. block - A proc that should be added to the callbacks. Block Parameters name - The callback to be added options - A h

process

process(action, *args) Instance Public methods Calls the action going through the entire action dispatch stack. The actual method that is called is determined by calling method_for_action. If no method can handle the action, then an ActionNotFound error is raised. Returns self