diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-09-28 12:00:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 12:00:21 -0400 |
commit | 7d3f1c414f5dd4b8f9200676b4c370a29cfd7960 (patch) | |
tree | 1ad61f472a9fe11087f86f3da7b66878c4f7bdb3 /activesupport/lib | |
parent | 6ff4faffb1e752c9713b4276c90bfb45feade498 (diff) | |
parent | b2ea8310734b734c29b806f272c866045fc9bca7 (diff) | |
download | rails-7d3f1c414f5dd4b8f9200676b4c370a29cfd7960.tar.gz rails-7d3f1c414f5dd4b8f9200676b4c370a29cfd7960.tar.bz2 rails-7d3f1c414f5dd4b8f9200676b4c370a29cfd7960.zip |
Merge pull request #34012 from abraham-chan/indifferent-access-without
Fix HashWithIndifferentAccess#without bug
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 |
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 |