diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:30:17 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:30:17 +0000 |
commit | 6743504ba2091d180f8f9318bec4d97d6ab347c3 (patch) | |
tree | d9d4d50b7d1f3e31ca9203532f0eb34985117a7b /activesupport/lib/active_support/dependencies.rb | |
parent | 3df9fb53acb7b2fb445ba197da7340cfdf4fc78c (diff) | |
download | rails-6743504ba2091d180f8f9318bec4d97d6ab347c3.tar.gz rails-6743504ba2091d180f8f9318bec4d97d6ab347c3.tar.bz2 rails-6743504ba2091d180f8f9318bec4d97d6ab347c3.zip |
Revert const_missing bypass in favor of Duration constant lookup tweak
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index d1ca9f0473..6a5cfbf2e5 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -461,11 +461,6 @@ end class Class def const_missing(const_name) - # Bypass entire lookup process if we can get the constant from Object. - # This is useful for Ruby 1.9 where Module#const_defined? looks up the - # ancestors in the chain for the constant. - return ::Object.const_get(const_name) if ::Object.const_defined?(const_name) - if [Object, Kernel].include?(self) || parent == self super else |