提交 3363a3c2 编写于 作者: X Xavier Noria

fixes configuration examples [ci skip]

上级 669b52d2
......@@ -140,7 +140,7 @@ The default configuration for Rails 6
```ruby
# config/application.rb
load_defaults "6.0"
config.load_defaults "6.0"
```
enables `zeitwerk` autoloading mode on CRuby. In that mode, autoloading, reloading, and eager loading are managed by [Zeitwerk](https://github.com/fxn/zeitwerk).
......@@ -166,7 +166,7 @@ However, `classic` mode infers file names from missing constant names (`undersco
```ruby
# config/application.rb
load_defaults "6.0"
config.load_defaults "6.0"
config.autoloader = :classic
```
......@@ -346,7 +346,7 @@ Applications can load Rails 6 defaults and still use the classic autoloader by s
```ruby
# config/application.rb
load_defaults "6.0"
config.load_defaults "6.0"
config.autoloader = :classic
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册