mirror of https://github.com/rails/rails
Fix a typo in autoloading doc and note on autoload_paths [ci skip]
This commit is contained in:
parent
151747ff0d
commit
dd0cae3138
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue