Create Redisable#redis (#9633)

* Create Redisable

* Use #redis instead of Redis.current
This commit is contained in:
ysksn
2019-02-17 19:42:14 +01:00
committed by Eugen Rochko
parent 17a41e1f77
commit 737ac4b59d
13 changed files with 39 additions and 59 deletions
+11
View File
@@ -0,0 +1,11 @@
# frozen_string_literal: true
module Redisable
extend ActiveSupport::Concern
private
def redis
Redis.current
end
end