class ActionDispatch::Http::ParameterFilter - actionpack-4.2.3 Documentation

# class ActionDispatch::Http::ParameterFilter

### Public Class Methods

new(filters = []) click to toggle source

    # File lib/action_dispatch/http/parameter_filter.rb, line 6
    def initialize(filters = [])
      @filters = filters
    end

### Public Instance Methods

filter(params) click to toggle source

    # File lib/action_dispatch/http/parameter_filter.rb, line 10
    def filter(params)
      compiled_filter.call(params)
    end

### Private Instance Methods

compiled_filter() click to toggle source

    # File lib/action_dispatch/http/parameter_filter.rb, line 16
    def compiled_filter
      @compiled_filter ||= CompiledFilter.compile(@filters)
    end