Class: ActionDispatch::Http::ParameterFilter
- Inherits:
-
Object
- Object
- ActionDispatch::Http::ParameterFilter
- Defined in:
- lib/action_dispatch/http/parameter_filter.rb
Defined Under Namespace
Classes: CompiledFilter
Constant Summary collapse
- FILTERED =
:nodoc:
"[FILTERED]".freeze
Instance Method Summary collapse
- #filter(params) ⇒ Object
-
#initialize(filters = []) ⇒ ParameterFilter
constructor
A new instance of ParameterFilter.
Constructor Details
#initialize(filters = []) ⇒ ParameterFilter
Returns a new instance of ParameterFilter.
8 9 10 |
# File 'lib/action_dispatch/http/parameter_filter.rb', line 8 def initialize(filters = []) @filters = filters end |
Instance Method Details
#filter(params) ⇒ Object
12 13 14 |
# File 'lib/action_dispatch/http/parameter_filter.rb', line 12 def filter(params) compiled_filter.call(params) end |