From dd0cae3138e3187ea67f64edeff3585ac3f5f99d Mon Sep 17 00:00:00 2001 From: jafrog Date: Mon, 2 Feb 2015 21:14:07 +0000 Subject: Fix a typo in autoloading doc and note on autoload_paths [ci skip] --- guides/source/autoloading_and_reloading_constants.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3