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

Instance Method Details

#parametersObject

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