Eliminate the last warning for redis wrapper
This commit is contained in:
parent
99784d7797
commit
e042baebb8
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ Bundler.require(:default, Rails.env)
|
|||
|
||||
module Gitlab
|
||||
class Application < Rails::Application
|
||||
require_dependency Rails.root.join('lib/gitlab/redis/wrapper')
|
||||
require_dependency Rails.root.join('lib/gitlab/redis/cache')
|
||||
require_dependency Rails.root.join('lib/gitlab/redis/queues')
|
||||
require_dependency Rails.root.join('lib/gitlab/redis/shared_state')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue