Follow up to #38953 [ci skip]

This commit is contained in:
Ryuta Kamizono 2020-05-05 17:50:05 +09:00
parent 3f883b69a7
commit 0eebfaef87
3 changed files with 4 additions and 4 deletions

@ -57,7 +57,7 @@ The autoloading `zeitwerk` mode is enabled by default in Rails 6 applications ru
```ruby
# config/application.rb
config.load_defaults "6.0" # enables zeitwerk mode in CRuby
config.load_defaults 6.0 # enables zeitwerk mode in CRuby
```
In `zeitwerk` mode, Rails uses [Zeitwerk](https://github.com/fxn/zeitwerk) internally to autoload, reload, and eager load. Rails instantiates and configures a dedicated Zeitwerk instance that manages the project.
@ -363,7 +363,7 @@ Applications can load Rails 6 defaults and still use the classic autoloader this
```ruby
# config/application.rb
config.load_defaults "6.0"
config.load_defaults 6.0
config.autoloader = :classic
```

@ -162,7 +162,7 @@ defaults to `:debug` for all environments. The available log levels are: `:debug
* `config.autoloader` sets the autoloading mode. This option defaults to `:zeitwerk` if `6.0` is specified in `config.load_defaults`. Applications can still use the classic autoloader by setting this value to `:classic` after loading the framework defaults:
```ruby
config.load_defaults "6.0"
config.load_defaults 6.0
config.autoloader = :classic
```

@ -523,7 +523,7 @@ Applications can load Rails 6 defaults and still use the classic autoloader by s
```ruby
# config/application.rb
config.load_defaults "6.0"
config.load_defaults 6.0
config.autoloader = :classic
```