aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/autoloading_fixtures/circular2.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-08-28 20:27:59 +0200
committerXavier Noria <fxn@hashref.com>2012-08-28 20:34:39 +0200
commitb33700f5580b4cd85379a1dc60fa341ac4d8deb2 (patch)
tree8c531e63fa5f14282def9d7dfd30589584d3329f /activesupport/test/autoloading_fixtures/circular2.rb
parent844e944465beb37bd19bdfdedc19eba54479f39e (diff)
downloadrails-b33700f5580b4cd85379a1dc60fa341ac4d8deb2.tar.gz
rails-b33700f5580b4cd85379a1dc60fa341ac4d8deb2.tar.bz2
rails-b33700f5580b4cd85379a1dc60fa341ac4d8deb2.zip
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.
Diffstat (limited to 'activesupport/test/autoloading_fixtures/circular2.rb')
-rw-r--r--activesupport/test/autoloading_fixtures/circular2.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/autoloading_fixtures/circular2.rb b/activesupport/test/autoloading_fixtures/circular2.rb
new file mode 100644
index 0000000000..c847fa5001
--- /dev/null
+++ b/activesupport/test/autoloading_fixtures/circular2.rb
@@ -0,0 +1,4 @@
+Circular1
+
+class Circular2
+end