Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Devise.mappings work with lazy loaded routes.
Starting from Rails 8.0, routes are lazy-loaded by default in test and development environments. However, Devise's mappings are built during the routes loading phase. To ensure it works correctly, we need to load the routes first before accessing @@mappings.
- Loading branch information