Replace current_spree_user method

This wasn't working before but now seems to be fixed
This commit is contained in:
Matt-Yorkley
2020-01-03 02:13:09 +01:00
committed by Luis Ramos
parent b3e7f9a07e
commit b9db6df952

View File

@@ -8,7 +8,7 @@ module Spree
end
def spree_current_user
@current_spree_user ||= request.env['warden'].authenticate
current_spree_user
end
delegate :login_path, to: :spree, prefix: true