From b9db6df952f74cfb218bd656c93c38da3402ff42 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 3 Jan 2020 02:13:09 +0100 Subject: [PATCH] Replace current_spree_user method This wasn't working before but now seems to be fixed --- lib/spree/authentication_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spree/authentication_helpers.rb b/lib/spree/authentication_helpers.rb index 29bb716d98..49bd97542a 100644 --- a/lib/spree/authentication_helpers.rb +++ b/lib/spree/authentication_helpers.rb @@ -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