-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccae57d
commit 3831358
Showing
3 changed files
with
94 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This can be removed when https://github.com/heartcombo/devise/pull/5728 is released | ||
# and testing with devise works again. | ||
require 'devise' | ||
|
||
module Devise | ||
def self.mappings | ||
# 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. | ||
Rails.application.try(:reload_routes_unless_loaded) | ||
@@mappings | ||
end | ||
end |