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.
6 lines
57 B
Ruby
6 lines
57 B
Ruby
silence_warnings do
|
|
Circular2
|
|
end
|
|
|
|
class Circular1
|
|
end
|