When starting a Rails 7 app, I ran into this error
NameError:
uninitialized constant ApplicationController
Did you mean? ApplicationHelper
This happened because in Rails 7, the app can no longer configure the autoloader, so app.config.respond_to(:autoloader) would return false. This caused the pre-rails 6.x branch of the initializer to run.
Rather than fix the initializer to work with Rails 5.x, 6.x, and 7.x, I removed support for Rails 5.x.
When starting a Rails 7 app, I ran into this error
This happened because in Rails 7, the app can no longer configure the autoloader, so
app.config.respond_to(:autoloader)
would return false. This caused the pre-rails 6.x branch of the initializer to run.Rather than fix the initializer to work with Rails 5.x, 6.x, and 7.x, I removed support for Rails 5.x.