We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2379547 commit 8dc984bCopy full SHA for 8dc984b
app-rails/config/initializers/devise.rb
@@ -24,11 +24,10 @@
24
end
25
26
Rails.application.config.to_prepare do
27
- # Ensure ActiveRecord is connected before loading Devise
28
- User.connection
29
-
30
- # Safely load Devise mappings
31
- Devise.mappings[:user]
+ if Rails.env.development?
+ User.connection
+ Devise.mappings[:user]
+ end
32
33
34
# ==> Navigation configuration
app-rails/local.env.example
@@ -34,6 +34,7 @@ COGNITO_USER_POOL_ID=<FILL ME IN>
COGNITO_CLIENT_ID=<FILL ME IN>
35
COGNITO_CLIENT_SECRET=<FILL ME IN>
36
USE_DEVISE=true
37
+AUTH_ADAPTER=mock
38
39
############################
40
# Database
0 commit comments