Module | ActionController::Filters::ClassMethods |
In: |
lib/action_controller/filters.rb
|
The passed filters will be appended to the array of filters that run after actions on this controller are performed.
If you append_around_filter A.new, B.new, the filter chain looks like
B#before A#before # run the action A#after B#after
With around filters which yield to the action block, before and after are the code before and after the yield.
The passed filters will be appended to the filter_chain and will execute before the action on this controller is performed.
The passed filters will be prepended to the array of filters that run after actions on this controller are performed.
If you prepend_around_filter A.new, B.new, the filter chain looks like:
A#before B#before # run the action B#after A#after
With around filters which yield to the action block, before and after are the code before and after the yield.
The passed filters will be prepended to the filter_chain and will execute before the action on this controller is performed.
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.
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.
Removes the specified filters from the filter chain. This only works for method reference (symbol) filters, not procs. This method is different from skip_after_filter and skip_before_filter in that it will match any before, after or yielding around filter.
You can control the actions to skip the filter for with the :only and :except options, just like when you apply the filters.