aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/autoloading_and_reloading_constants.md
diff options
context:
space:
mode:
authorjafrog <howeveririna@gmail.com>2015-02-02 21:14:07 +0000
committerjafrog <howeveririna@gmail.com>2015-02-02 22:00:18 +0000
commitdd0cae3138e3187ea67f64edeff3585ac3f5f99d (patch)
tree59b6edf2ba35ee5130a568605dc2244d42a9b1b3 /guides/source/autoloading_and_reloading_constants.md
parent151747ff0d13344a12b83d2f92175b7c53d2d39b (diff)
downloadrails-dd0cae3138e3187ea67f64edeff3585ac3f5f99d.tar.gz
rails-dd0cae3138e3187ea67f64edeff3585ac3f5f99d.tar.bz2
rails-dd0cae3138e3187ea67f64edeff3585ac3f5f99d.zip
Fix a typo in autoloading doc and note on autoload_paths [ci skip]
Diffstat (limited to 'guides/source/autoloading_and_reloading_constants.md')
-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):