Skip to content

Commit be8064c

Browse files
jafrogZachary Scott
authored andcommitted
Fix a typo in autoloading doc and note on autoload_paths [ci skip]
1 parent 93ca402 commit be8064c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/source/autoloading_and_reloading_constants.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,9 @@ Also, this collection is configurable via `config.autoload_paths`. For example,
461461
by adding this to `config/application.rb`:
462462

463463
```ruby
464-
config.autoload_paths += "#{Rails.root}/lib"
464+
config.autoload_paths << "#{Rails.root}/lib"
465465
```
466+
`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.
466467

467468
The value of `autoload_paths` can be inspected. In a just generated application
468469
it is (edited):

0 commit comments

Comments
 (0)