diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 17:01:21 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-02-02 17:01:21 -0700 |
commit | 8a42525dea42169740f0f288f5baf7c2903628a2 (patch) | |
tree | fdad30b266654126673318e16457638ee2b89470 | |
parent | 4ec5b0d6b4d8a57e034b1014942356e95caf47aa (diff) | |
parent | dd0cae3138e3187ea67f64edeff3585ac3f5f99d (diff) | |
download | rails-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.md | 3 |
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): |