mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b33700f558
Nowadays circular autoloads do not work, but the user gets a NameError that says some constant is undefined. That's puzzling, because he is normally trying to autoload a constant he knows can be autoloaded. With this check we can give a better error message. |
||
---|---|---|
.. | ||
a | ||
class_folder | ||
load_path | ||
module_folder | ||
module_with_custom_const_missing/a | ||
application.rb | ||
circular1.rb | ||
circular2.rb | ||
class_folder.rb | ||
conflict.rb | ||
counting_loader.rb | ||
cross_site_dependency.rb | ||
e.rb | ||
loads_constant.rb | ||
multiple_constant_file.rb | ||
raises_name_error.rb | ||
raises_no_method_error.rb | ||
requires_constant.rb |