mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Add default scope to devise to stop it from checking other devise enabled models (in this case :enterprise)
This commit is contained in:
5
config/initializers/devise.rb
Normal file
5
config/initializers/devise.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
Devise.setup do |config|
|
||||
# Add a default scope to devise, to prevent it from checking
|
||||
# whether other devise enabled models are signed into a session or not
|
||||
config.default_scope = :spree_user
|
||||
end
|
||||
Reference in New Issue
Block a user