From f61d5b4767d72cade2838305936da98f31eb092c Mon Sep 17 00:00:00 2001 From: Peter Baker Date: Sun, 2 Feb 2020 15:14:10 +0000 Subject: [PATCH] Improve zeitwerk:check warning message. The messages that are printed to the console when users run rails zeitwerk:check can be a little confusing if they've generated a mailer, as the test files aren't included by default, and a warning appears about this. To address this issue the warning message has been improved so that it is clearer that this behaviour is normal and it explicitly states that the user must configure eager loading to silence these warnings. Fixes #38156 --- railties/lib/rails/tasks/zeitwerk.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/lib/rails/tasks/zeitwerk.rake b/railties/lib/rails/tasks/zeitwerk.rake index ac620dab6a214..a423dddae65fa 100644 --- a/railties/lib/rails/tasks/zeitwerk.rake +++ b/railties/lib/rails/tasks/zeitwerk.rake @@ -14,8 +14,8 @@ end report_not_checked = ->(not_checked) do puts puts <<~EOS - WARNING: The files in these directories cannot be checked because they - are not eager loaded: + WARNING: The following files will only be checked if you configure + them to be eager loaded: EOS puts