aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAbraham Chan <abraham@rangeme.com>2018-09-28 18:28:30 +1000
committerAbraham Chan <abraham@rangeme.com>2018-09-28 18:28:56 +1000
commitb2ea8310734b734c29b806f272c866045fc9bca7 (patch)
treeb60fe55248cb8ce1f0065e756e010d07854439e9 /activesupport/lib
parent2ab0df00b69335986f1116b7bea17c1ed0f52d9f (diff)
downloadrails-b2ea8310734b734c29b806f272c866045fc9bca7.tar.gz
rails-b2ea8310734b734c29b806f272c866045fc9bca7.tar.bz2
rails-b2ea8310734b734c29b806f272c866045fc9bca7.zip
Fix HashWithIndifferentAccess#without bug
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb
index e4afc8af93..b9e64ed05d 100644
--- a/activesupport/lib/active_support/hash_with_indifferent_access.rb
+++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -279,6 +279,8 @@ module ActiveSupport
super(convert_key(key))
end
+ alias_method :without, :except
+
def stringify_keys!; self end
def deep_stringify_keys!; self end
def stringify_keys; dup end