mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Set the Spree.user_class explicitly in spree initializer
This commit is contained in:
@@ -24,6 +24,9 @@ Spree.config do |config|
|
||||
config.order_updater_decorator = OrderUpdater
|
||||
end
|
||||
|
||||
# Spree 2.0 recommends explicitly setting this here when using spree_auth_devise
|
||||
Spree.user_class = 'Spree::User'
|
||||
|
||||
# Don't log users out when setting a new password
|
||||
Spree::Auth::Config[:signout_after_password_change] = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user