From 85d1f19f81b98902a349db61e73c2fe738fdc5dd Mon Sep 17 00:00:00 2001 From: Max Catman Date: Wed, 2 Nov 2022 23:03:50 -0600 Subject: [PATCH] Update objects.rb should fix issue. --- lib/redis/objects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redis/objects.rb b/lib/redis/objects.rb index d599f9a..9336bb1 100644 --- a/lib/redis/objects.rb +++ b/lib/redis/objects.rb @@ -62,7 +62,7 @@ def redis=(conn) @redis = Objects::ConnectionPoolProxy.proxy_if_needed(conn) end def redis - @redis || $redis || Redis.current || + @redis || $redis || Redis.new || raise(NotConnected, "Redis::Objects.redis not set to a Redis.new connection") end