aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/hash_with_indifferent_access.rb8
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 4f71f13971..c7477b9ff4 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(*args, &block)
- dup.tap { |hash| hash.select!(*args, &block) }
+ def select(*)
+ super.with_indifferent_access
end
- def reject(*args, &block)
- dup.tap { |hash| hash.reject!(*args, &block) }
+ def reject(*)
+ super.with_indifferent_access
end
# Convert to a regular hash with string keys.