diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md index 3b212dab12..efd6ad6665 100644 --- a/guides/source/autoloading_and_reloading_constants.md +++ b/guides/source/autoloading_and_reloading_constants.md @@ -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 ``` diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 3d21f51264..37ea5c5c72 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -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 ``` diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index b099daae30..a212464622 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -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 ```