aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-19 02:46:42 +0200
committerXavier Noria <fxn@hashref.com>2010-08-19 02:46:42 +0200
commiteab4860e9b8b81522df481e1e046d142af0455ee (patch)
tree4070de160f7f69a467a2b8c66e6dca851fe3f81b /activesupport/lib/active_support/core_ext
parentc510f059673edf9477c90c3c9c083caa6689101d (diff)
downloadrails-eab4860e9b8b81522df481e1e046d142af0455ee.tar.gz
rails-eab4860e9b8b81522df481e1e046d142af0455ee.tar.bz2
rails-eab4860e9b8b81522df481e1e046d142af0455ee.zip
avoids a ton o warnings activesupport/lib/active_support/dependencies.rb:239: warning: loading in progress, circular require considered harmful ... activesupport/lib/active_support/core_ext/hash/indifferent_access.rb while running the suite in Ruby 1.9.2
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/indifferent_access.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
index 0420e206af..aad4b61e16 100644
--- a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
+++ b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
@@ -7,8 +7,6 @@ class Hash
# {:a => 1}.with_indifferent_access["a"] # => 1
#
def with_indifferent_access
- hash = ActiveSupport::HashWithIndifferentAccess.new(self)
- hash.default = self.default
- hash
+ ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default(self)
end
end