aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-01 17:43:45 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-01 17:43:45 -0800
commitf345e2380cac2560f3bbd80defe1ef485e0d564e (patch)
treecfc7fc6d769a3948113e7ffadd0b3d9ccf891ff5 /activesupport
parent7b6bfe84f332a3c99656f73cf0251bce0a16ba88 (diff)
downloadrails-f345e2380cac2560f3bbd80defe1ef485e0d564e.tar.gz
rails-f345e2380cac2560f3bbd80defe1ef485e0d564e.tar.bz2
rails-f345e2380cac2560f3bbd80defe1ef485e0d564e.zip
yo dawg, directly use the class cache rather than the cache of the cache
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/dependencies.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 94a8608aeb..d5c51ca417 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -47,9 +47,6 @@ module ActiveSupport #:nodoc:
mattr_accessor :autoloaded_constants
self.autoloaded_constants = []
- mattr_accessor :references
- self.references = {}
-
# An array of constant names that need to be unloaded on every request. Used
# to allow arbitrary constants to be marked for unloading.
mattr_accessor :explicitly_unloadable_constants
@@ -565,11 +562,11 @@ module ActiveSupport #:nodoc:
Reference = ClassCache.new
def ref(name)
- references[name] ||= Reference.new(name)
+ Reference.new(name)
end
def constantize(name)
- ref(name).get(name)
+ Reference.get(name)
end
# Determine if the given constant has been automatically loaded.