aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-02-02 17:01:21 -0700
committerSean Griffin <sean@seantheprogrammer.com>2015-02-02 17:01:21 -0700
commit8a42525dea42169740f0f288f5baf7c2903628a2 (patch)
treefdad30b266654126673318e16457638ee2b89470
parent4ec5b0d6b4d8a57e034b1014942356e95caf47aa (diff)
parentdd0cae3138e3187ea67f64edeff3585ac3f5f99d (diff)
downloadrails-8a42525dea42169740f0f288f5baf7c2903628a2.tar.gz
rails-8a42525dea42169740f0f288f5baf7c2903628a2.tar.bz2
rails-8a42525dea42169740f0f288f5baf7c2903628a2.zip
Merge pull request #18789 from jafrog/master
A typo fix and a small clarification on `autoload_paths`
-rw-r--r--guides/source/autoloading_and_reloading_constants.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md
index f0ef03f0ce..8f9125f311 100644
--- a/guides/source/autoloading_and_reloading_constants.md
+++ b/guides/source/autoloading_and_reloading_constants.md
@@ -461,8 +461,9 @@ Also, this collection is configurable via `config.autoload_paths`. For example,
by adding this to `config/application.rb`:
```ruby
-config.autoload_paths += "#{Rails.root}/lib"
+config.autoload_paths << "#{Rails.root}/lib"
```
+`config.autoload_paths` is accessible from environment-specific configuration files, but any changes made to it outside `config/application.rb` don't have an effect.
The value of `autoload_paths` can be inspected. In a just generated application
it is (edited):