From 3d6eafe32ed498784dba2b9782bbf7df47ebeb6b Mon Sep 17 00:00:00 2001 From: Miles Georgi Date: Sun, 11 Dec 2011 12:59:59 -0800 Subject: Overrode Hash#nested_under_indifferent_access in HashWithIndifferentAccess to return self. --- activesupport/lib/active_support/hash_with_indifferent_access.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index 636f019cd5..674e4acfd6 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -16,6 +16,10 @@ module ActiveSupport dup end + def nested_under_indifferent_access + self + end + def initialize(constructor = {}) if constructor.is_a?(Hash) super() -- cgit v1.2.3