Module | ActionController::Filters::ClassMethods
In: | lib/action_controller/filters.rb

### Methods

after_filter append_after_filter append_around_filter append_before_filter around_filter before_filter filter_chain prepend_after_filter prepend_around_filter prepend_before_filter skip_after_filter skip_before_filter skip_filter

### Public Instance methods

after_filter(*filters, &block)

Alias for append_after_filter

append_after_filter(*filters, &block)

The passed `filters` will be appended to the array of filters that run after actions on this controller are performed.

append_around_filter(*filters, &block)

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.

append_before_filter(*filters, &block)

The passed `filters` will be appended to the filter_chain and will execute before the action on this controller is performed.

around_filter(*filters, &block)

Alias for append_around_filter

before_filter(*filters, &block)

Alias for append_before_filter

filter_chain()

Returns an array of Filter objects for this controller.

prepend_after_filter(*filters, &block)

The passed `filters` will be prepended to the array of filters that run after actions on this controller are performed.

prepend_around_filter(*filters, &block)

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.

prepend_before_filter(*filters, &block)

The passed `filters` will be prepended to the filter_chain and will execute before the action on this controller is performed.

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.

skip_before_filter(*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.

skip_filter(*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.

[Validate]