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.
# File actionpack/lib/action_controller/filters.rb, line 274 def skip_after_filter(*filters) if conditions = extract_conditions!(filters) remove_contradicting_conditions!(filters, conditions) conditions[:only], conditions[:except] = conditions[:except], conditions[:only] add_action_conditions(filters, conditions) else for filter in filters.flatten write_inheritable_attribute("after_filters", read_inheritable_attribute("after_filters") - [ filter ]) end end end