From 9b76e93fea50b2b982993a2211334ccd1adf7c52 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 8 Mar 2022 20:27:46 +0100 Subject: [PATCH] Modernizes wording in the autoloading guide --- guides/source/autoloading_and_reloading_constants.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md index 15731d5d15..f418f21c92 100644 --- a/guides/source/autoloading_and_reloading_constants.md +++ b/guides/source/autoloading_and_reloading_constants.md @@ -307,7 +307,7 @@ Eager loading is controlled by the flag [`config.eager_load`][], which is enable The order in which files are eager-loaded is undefined. -If the `Zeitwerk` constant is defined, Rails invokes `Zeitwerk::Loader.eager_load_all` regardless of the application autoloading mode. That ensures dependencies managed by Zeitwerk are eager-loaded. +During eager loading, Rails invokes `Zeitwerk::Loader.eager_load_all`. That ensures all gem dependencies managed by Zeitwerk are eager-loaded too. [`config.eager_load`]: configuring.html#config-eager-load