Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve zeitwerk:check warning message [CI skip] #38374

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

peterb
Copy link
Contributor

@peterb peterb commented Feb 2, 2020

Summary

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

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 rails#38156
@rails-bot rails-bot bot added the railties label Feb 2, 2020
@peterb peterb requested a review from fxn February 3, 2020 15:06
@fxn
Copy link
Member

fxn commented Feb 3, 2020

ACK!

@fxn fxn self-assigned this Apr 29, 2020
@fxn
Copy link
Member

fxn commented Apr 29, 2020

I'll do a small edit after merging, but this message is better. Thanks!

@fxn fxn merged commit cd2d1cf into rails:master Apr 29, 2020
@peterb peterb deleted the improve_zeitwerk_check_warning_message branch April 29, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating a new Mailer yields a zeitwerk warning
2 participants