From 8e9685bf72d466b97655e0310eda24527aa2cbb3 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 15 Dec 2014 18:31:27 -0800 Subject: Ruby will allocate the class as a side-effect, since it is already defined. [ci skip] --- guides/source/constant_autoloading_and_reloading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/constant_autoloading_and_reloading.md b/guides/source/constant_autoloading_and_reloading.md index 03a4f2563f..a6b270e06d 100644 --- a/guides/source/constant_autoloading_and_reloading.md +++ b/guides/source/constant_autoloading_and_reloading.md @@ -405,7 +405,7 @@ next directory of the list. If the list gets exhausted, `LoadError` is raised. We are going to cover how constant autoloading works in more detail later, but the idea is that when a constant like `Post` is hit and missing, if there is a *post.rb* file, for example in *app/models*, Rails will find it, evaluate it -and have `Post` defined as a side-effect. +and allocate the class `Post` as a side-effect. At this point, Rails has a collection of directories similar to `$LOAD_PATH` in which to look up *post.rb*. That collection is called `autoload_paths` and by -- cgit v1.2.3