rails/activesupport/test/autoloading_fixtures/circular2.rb
Xavier Noria b33700f558 detect circular constant autoloading
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.
2012-08-28 20:34:39 +02:00

5 lines
31 B
Ruby

Circular1
class Circular2
end