Class: ActionController::ParamsParser
- Defined in:
- lib/action_controller/params_parser.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ParamsParser
constructor
A new instance of ParamsParser.
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 |