aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 22:57:17 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-07-30 22:57:17 -0300
commitdc9a6825be5421277d70d9f76da80297674e5da1 (patch)
tree8571a55ec4d4a495290eb2f06875b773a38287c6 /activesupport/lib
parent5d4fce640ef80b2e50589625320dd011d1097dda (diff)
parentd952a7afc5ef5826f8b4e9c339bc6a5974c9fd3f (diff)
downloadrails-dc9a6825be5421277d70d9f76da80297674e5da1.tar.gz
rails-dc9a6825be5421277d70d9f76da80297674e5da1.tar.bz2
rails-dc9a6825be5421277d70d9f76da80297674e5da1.zip
Merge pull request #16352 from gchan/remove-unnecessary-convert-key
Removed unnecessary call to 'convert_key' in 'HashWithIndifferentAccess#to_hash'
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb
index dc76a77a6c..30e27267a0 100644
--- a/activesupport/lib/active_support/hash_with_indifferent_access.rb
+++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -246,9 +246,9 @@ module ActiveSupport
# Convert to a regular hash with string keys.
def to_hash
- _new_hash= {}
+ _new_hash = {}
each do |key, value|
- _new_hash[convert_key(key)] = convert_value(value, for: :to_hash)
+ _new_hash[key] = convert_value(value, for: :to_hash)
end
Hash.new(default).merge!(_new_hash)
end