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