Class: ActionDispatch::Http::ParameterFilter

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(filters = []) ⇒ ParameterFilter

Returns a new instance of ParameterFilter.



10
11
12
# File 'lib/action_dispatch/http/parameter_filter.rb', line 10

def initialize(filters = [])
  @filters = filters
end

Instance Method Details

#filter(params) ⇒ Object



14
15
16
# File 'lib/action_dispatch/http/parameter_filter.rb', line 14

def filter(params)
  compiled_filter.call(params)
end