Fix a typo in autoloading doc and note on autoload_paths [ci skip]

This commit is contained in:
jafrog 2015-02-02 21:14:07 +00:00
parent 151747ff0d
commit dd0cae3138
1 changed files with 2 additions and 1 deletions

View File

@ -461,8 +461,9 @@ Also, this collection is configurable via `config.autoload_paths`. For example,
by adding this to `config/application.rb`: by adding this to `config/application.rb`:
```ruby ```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 The value of `autoload_paths` can be inspected. In a just generated application
it is (edited): it is (edited):