Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e042baeb
Commit
e042baeb
authored
Jan 24, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate the last warning for redis wrapper
parent
99784d77
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
config/application.rb
config/application.rb
+1
-0
lib/gitlab/redis/cache.rb
lib/gitlab/redis/cache.rb
+1
-1
No files found.
config/application.rb
View file @
e042baeb
...
...
@@ -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'
)
...
...
lib/gitlab/redis/cache.rb
View file @
e042baeb
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment