From 98c299fba5bdaf3f1c156c2e16a5a95a5d9cf251 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 18 Feb 2010 14:04:08 -0800 Subject: Don't constantize possible module names when looking for new constants unless they exist --- activesupport/lib/active_support/dependencies.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 87d56eb17e..107f664960 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -78,6 +78,7 @@ module ActiveSupport #:nodoc: def new_constants_for(frames) frames.map do |mod_name, prior_constants| mod = Inflector.constantize(mod_name) + mod = Inflector.constantize(mod_name) if Dependencies.qualified_const_defined?(mod_name) next unless mod.is_a?(Module) new_constants = mod.local_constant_names - prior_constants -- cgit v1.2.3