Flowdock
method

skip_before_filter

Importance_3
Ruby on Rails latest stable (v4.0.2) - 2 notes - Class: ActionController::Filters::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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
3 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 - v3.0.5)
0 thanks