Closed jcoyne closed 2 weeks ago
In rails 8.0, when ENV['CI'] is true, Rails does config.eager_load = true. This triggers this code in devise: https://github.com/heartcombo/devise/blob/main/lib/devise/rails.rb#L15-L18
config.eager_load = true
If there are other engines like propshaft that want to add routes, this prevents them since routes are only loaded once.
propshaft
The routes for all engines should be loaded when config.eager_load = true.
Closing this since https://github.com/rails/rails/pull/53522 was merged. Please let me know if it's still an issue with latest Rails's master.
Environment
Current behavior
In rails 8.0, when ENV['CI'] is true, Rails does
config.eager_load = true
. This triggers this code in devise: https://github.com/heartcombo/devise/blob/main/lib/devise/rails.rb#L15-L18If there are other engines like
propshaft
that want to add routes, this prevents them since routes are only loaded once.Expected behavior
The routes for all engines should be loaded when
config.eager_load = true
.