Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't constantize possible module names when looking for new constant…

…s unless they exist
  • Loading branch information...
commit 98c299fba5bdaf3f1c156c2e16a5a95a5d9cf251 1 parent 8a1f057
Yehuda Katz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activesupport/lib/active_support/dependencies.rb
View
1  activesupport/lib/active_support/dependencies.rb
@@ -78,6 +78,7 @@ def get(key)
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
Please sign in to comment.
Something went wrong with that request. Please try again.