diff options
author | Xavier Noria <fxn@hashref.com> | 2019-04-28 15:48:43 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-04-28 15:49:49 +0200 |
commit | 3c823271af52a61e825123def170fe2187057577 (patch) | |
tree | 6c15d72485840c64d689981f2206615c4032131b /guides | |
parent | b6e17b6a4b67ccc9fac5fe16741c3db720f00959 (diff) | |
download | rails-3c823271af52a61e825123def170fe2187057577.tar.gz rails-3c823271af52a61e825123def170fe2187057577.tar.bz2 rails-3c823271af52a61e825123def170fe2187057577.zip |
fixes typo in guide [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index b0173e5c97..3863323bd2 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -64,7 +64,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such * `config.autoload_paths` accepts an array of paths from which Rails will autoload constants. Default is all directories under `app`. It is no longer recommended to adjust this. See [Autoloading and Reloading Constants](autoloading_and_reloading_constants.html#autoload-paths-and-eager-load-paths) -* `config.add_autoload_paths_to_load_path` says whether autoload paths have to be added to `$LOAD_PATH`. This flag is `true` by default, but it is recommended to be set to `false` in `:zeitwerk` mode early, in `config/application.rb`. Zeitwerk uses absolute paths internally, and applications running in `:zeitwerk` mode do not need `require_relative`, so models, controllers, jobs, etc. do not need to be in `$LOAD_PATH`. Setting this to `false` saves Ruby from checking these directories when resolving `require` calls with relative paths, and saves Bootsnap work and RAM, since it does not need to build an index for them. +* `config.add_autoload_paths_to_load_path` says whether autoload paths have to be added to `$LOAD_PATH`. This flag is `true` by default, but it is recommended to be set to `false` in `:zeitwerk` mode early, in `config/application.rb`. Zeitwerk uses absolute paths internally, and applications running in `:zeitwerk` mode do not need `require_dependency`, so models, controllers, jobs, etc. do not need to be in `$LOAD_PATH`. Setting this to `false` saves Ruby from checking these directories when resolving `require` calls with relative paths, and saves Bootsnap work and RAM, since it does not need to build an index for them. * `config.cache_classes` controls whether or not application classes and modules should be reloaded on each request. Defaults to `false` in development mode, and `true` in test and production modes. |