diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-07-15 22:59:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-07-15 22:59:45 -0300 |
commit | 094571b46dbc00a2db0bfcc96c38d984d2b675f3 (patch) | |
tree | 41721a0b58dc95683719e7b8918934afdb503c19 | |
parent | 424b379c73851ac24ab707b2743de2c9d8875e2f (diff) | |
parent | ea6e7ffd7891f4ccdccfee00647ef3576888eaba (diff) | |
download | rails-094571b46dbc00a2db0bfcc96c38d984d2b675f3.tar.gz rails-094571b46dbc00a2db0bfcc96c38d984d2b675f3.tar.bz2 rails-094571b46dbc00a2db0bfcc96c38d984d2b675f3.zip |
Merge pull request #20892 from zoltankiss/make-params-method-returns-consistent
Standardize `ActionController::Parameters#to_unsafe_h` return value
-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 |