Class: ActionDispatch::Http::ParameterFilter
- Defined in:
- actionpack/lib/action_dispatch/http/parameter_filter.rb
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.
5 6 7 |
# File 'actionpack/lib/action_dispatch/http/parameter_filter.rb', line 5 def initialize(filters) @filters = filters end |
Instance Method Details
#filter(params) ⇒ Object
9 10 11 12 13 14 15 |
# File 'actionpack/lib/action_dispatch/http/parameter_filter.rb', line 9 def filter(params) if enabled? compiled_filter.call(params) else params.dup end end |