Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 20:51:46 +0300
committerDouwe Maan <douwe@selenight.nl>2017-02-23 18:32:42 +0300
commit75f5fa997de148c9bc0e5bd6e6f6050526a0b164 (patch)
treee2fd6db5b1190817c062a8df20018dd00be68ce0 /lib/gitlab/redis.rb
parent7d4b52b27dcbe30d85d4fad27e983cee51cf6677 (diff)
Enable Rails/Delegate
Diffstat (limited to 'lib/gitlab/redis.rb')
-rw-r--r--lib/gitlab/redis.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/gitlab/redis.rb b/lib/gitlab/redis.rb
index 53665c8375e..e9c07095042 100644
--- a/lib/gitlab/redis.rb
+++ b/lib/gitlab/redis.rb
@@ -13,15 +13,11 @@ module Gitlab
class << self
# Do NOT cache in an instance variable. Result may be mutated by caller.
- def params
- new.params
- end
+ delegate :params, to: :new
# Do NOT cache in an instance variable. Result may be mutated by caller.
# @deprecated Use .params instead to get sentinel support
- def url
- new.url
- end
+ delegate :url, to: :new
def with
@pool ||= ConnectionPool.new(size: pool_size) { ::Redis.new(params) }