diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-01-24 12:05:39 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-01-26 14:42:48 +0300 |
commit | e042baebb81ebd2b60becd9bebd2d088881aeca4 (patch) | |
tree | 163e026b0ce083e27d0871c1cda44ff6a6897dc7 /lib | |
parent | 99784d77978e7548f70fa8499c5c9931c507d6f4 (diff) |
Eliminate the last warning for redis wrapper
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/redis/cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/redis/cache.rb b/lib/gitlab/redis/cache.rb index 9bf019b72e6..a991933e910 100644 --- a/lib/gitlab/redis/cache.rb +++ b/lib/gitlab/redis/cache.rb @@ -1,5 +1,5 @@ # please require all dependencies below: -require_relative 'wrapper' unless defined?(::Gitlab::Redis::Wrapper) +require_relative 'wrapper' unless defined?(::Rails) && ::Rails.root.present? module Gitlab module Redis |