Set the Spree.user_class explicitly in spree initializer

This commit is contained in:
Matt-Yorkley
2018-11-07 22:18:30 +00:00
parent fae0617639
commit edbfd64a44

View File

@@ -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