diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 107f6649609c2b3d0612a87748e57f6ed9461bff..da1050298bd4e4e143e29b8016039b10318dfbb9 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -77,7 +77,6 @@ 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)