edge badge
Namespace
Methods
C
N
Constants
DEFAULT_PARSERS = { Mime::JSON => :json }
 
Class Public methods
new(app, parsers = {})
# File actionpack/lib/action_dispatch/middleware/params_parser.rb, line 18
def initialize(app, parsers = {})
  @app, @parsers = app, DEFAULT_PARSERS.merge(parsers)
end
Instance Public methods
call(env)
# File actionpack/lib/action_dispatch/middleware/params_parser.rb, line 22
def call(env)
  if params = parse_formatted_parameters(env)
    env["action_dispatch.request.request_parameters"] = params
  end

  @app.call(env)
end