diff options
author | Zoltan Kiss <zkiss@ackmanndickenson.com> | 2015-07-15 19:16:58 -0500 |
---|---|---|
committer | Zoltan Kiss <zkiss@ackmanndickenson.com> | 2015-07-15 19:20:21 -0500 |
commit | ea6e7ffd7891f4ccdccfee00647ef3576888eaba (patch) | |
tree | 41721a0b58dc95683719e7b8918934afdb503c19 /actionpack/lib | |
parent | 424b379c73851ac24ab707b2743de2c9d8875e2f (diff) | |
download | rails-ea6e7ffd7891f4ccdccfee00647ef3576888eaba.tar.gz rails-ea6e7ffd7891f4ccdccfee00647ef3576888eaba.tar.bz2 rails-ea6e7ffd7891f4ccdccfee00647ef3576888eaba.zip |
Standardize `ActionController::Parameters#to_unsafe_h` return value
`ActionController::Parameters#to_h` returns a hash, so lets have
`ActionController::Parameters#to_unsafe_h` return a hash instead of
an `ActiveSupport::HashWithIndifferentAccess` for consistency.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 3f5e8c53a8..4c979ad4ec 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -183,7 +183,7 @@ module ActionController # Returns an unsafe, unfiltered +Hash+ representation of this parameter. def to_unsafe_h - @parameters + @parameters.to_h end alias_method :to_unsafe_hash, :to_unsafe_h |