public Method

ClassMethods.skip_after_filter(*filters)

Removes the specified filters from the after 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.

Source Code

# File action_controller/filters.rb, line 332
def skip_after_filter(*filters)
  skip_filter_in_chain(*filters, &:after?)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.