Module: ActionDispatch::Http::UnderscoreParams
- Defined in:
- lib/underscore_params/action_dispatch/http/underscore_params.rb
Overview
Overrides the default params method on ActionDispatch::Request to underscore all keys (request.params is aliased to parameters)
Should be included into ActionDispatch::Request after the standard Rails modules
Instance Method Summary collapse
-
#parameters ⇒ Object
Processes parameters by underscoring all hash keys.
Instance Method Details
#parameters ⇒ Object
Processes parameters by underscoring all hash keys
15 16 17 |
# File 'lib/underscore_params/action_dispatch/http/underscore_params.rb', line 15 def parameters underscore_keys super end |