aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-15 18:31:27 -0800
committerZachary Scott <e@zzak.io>2014-12-15 18:31:27 -0800
commit8e9685bf72d466b97655e0310eda24527aa2cbb3 (patch)
treee22b96eb529a3e515bc556977ebf721315a858aa
parentfa2e5903f7815f1a290a5027e8e9d052beb534ad (diff)
downloadrails-8e9685bf72d466b97655e0310eda24527aa2cbb3.tar.gz
rails-8e9685bf72d466b97655e0310eda24527aa2cbb3.tar.bz2
rails-8e9685bf72d466b97655e0310eda24527aa2cbb3.zip
Ruby will allocate the class as a side-effect, since it is already defined.
[ci skip]
-rw-r--r--guides/source/constant_autoloading_and_reloading.md2
1 files changed, 1 insertions, 1 deletions
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