diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index c7477b9ff4..4f71f13971 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -237,12 +237,12 @@ module ActiveSupport def deep_symbolize_keys; to_hash.deep_symbolize_keys! end def to_options!; self end - def select(*) - super.with_indifferent_access + def select(*args, &block) + dup.tap { |hash| hash.select!(*args, &block) } end - def reject(*) - super.with_indifferent_access + def reject(*args, &block) + dup.tap { |hash| hash.reject!(*args, &block) } end # Convert to a regular hash with string keys. |