From d489fa36f297a22846508653511f2ce97fa68194 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 10 Mar 2025 15:27:43 +0100 Subject: [PATCH] Fix Stoplight errors when using `REDIS_NAMESPACE` (#34126) --- lib/redis/namespace_extensions.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/redis/namespace_extensions.rb b/lib/redis/namespace_extensions.rb index 9af59c296e..2be738b04d 100644 --- a/lib/redis/namespace_extensions.rb +++ b/lib/redis/namespace_extensions.rb @@ -5,6 +5,10 @@ class Redis def exists?(...) call_with_namespace('exists?', ...) end + + def with + yield self + end end end