method

skip_before_filter

Importance_3
v1.1.6 - Show latest stable - 2 notes - Class: ActionController::Filters::ClassMethods
skip_before_filter(*filters) public

Removes the specified filters from the before filter chain. Note that this only works for skipping method-reference filters, not procs. This is especially useful for managing the chain in inheritance hierarchies where only one out of many sub-controllers need a different hierarchy.

You can control the actions to skip the filter for with the :only and :except options, just like when you apply the filters.

Show source
Register or log in to add new notes.
March 27, 2009
4 thanks

Usage

Here’s how to use it, just so it’s perfectly clear:

skip_before_filter :method_to_skip, :only => [:method_name]
March 21, 2011 - (>= v3.0.0)
0 thanks