Class: ActionController::ParamsParser

Inherits:
Object
  • Object
show all
Defined in:
lib/action_controller/params_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ParamsParser

Returns a new instance of ParamsParser.



6
7
8
# File 'lib/action_controller/params_parser.rb', line 6

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/action_controller/params_parser.rb', line 10

def call(env)
  if params = parse_formatted_parameters(env)
    env["action_controller.request.request_parameters"] = params
  end

  @app.call(env)
end