aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/dependencies.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/dependencies.rb')
-rw-r--r--activesupport/lib/active_support/dependencies.rb5
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