-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Rails 6.1.5 fails to launch rails server with config.eager_load = true #44876
Comments
This sounds like a problem with Ruby 3.1 and the mail gem. We had to make these changes in #44600 because required changes aren't getting merged into mail. I see you're on 6.1.5 so this should have fixed any issues you were having. Can you try explicitly adding the |
This is almost definitely the fix. The regex in 6.1.5 swallows the |
Adding
Here are the errors for
|
I tried the branch
|
Steps to reproduce
Expected behavior
You can launch rails server in both development and production.
Here is the behavior of Rails 7.0.2.3 with Ruby 3.1.1.
Mail.eager_autoload!
andMail.new
works well on rails console.Rails 6.1.5 with Ruby 3.0.3 worked as well, anyway.
Actual behavior
You can launch rails server in development. But not in production.
I found that it is possible to launch rails server even in production when I disable
config.eager_load
.Mail
module seems to work strangely.Either
Mail.eager_autoload!
orMail.new
does not work well on rails console.System configuration
Rails version: 6.1.5
Ruby version: 3.1.1
The text was updated successfully, but these errors were encountered: