about summary refs log tree commit diff
path: root/app/models/concerns/redisable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/redisable.rb')
-rw-r--r--app/models/concerns/redisable.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/concerns/redisable.rb b/app/models/concerns/redisable.rb
index 8d76b6b82..0dad3abb2 100644
--- a/app/models/concerns/redisable.rb
+++ b/app/models/concerns/redisable.rb
@@ -1,11 +1,11 @@
 # frozen_string_literal: true
 
 module Redisable
-  extend ActiveSupport::Concern
-
-  private
-
   def redis
     Thread.current[:redis] ||= RedisConfiguration.pool.checkout
   end
+
+  def with_redis(&block)
+    RedisConfiguration.with(&block)
+  end
 end