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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
87000ab7
Commit
87000ab7
authored
Oct 06, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check disabled_services when finding a service
parent
ea307230
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/models/project.rb
app/models/project.rb
+3
-3
No files found.
app/models/project.rb
View file @
87000ab7
...
...
@@ -1103,9 +1103,7 @@ class Project < ActiveRecord::Base
find_or_initialize_service
(
service_name
)
end
available_services
.
reject
do
|
service
|
disabled_services
.
include?
(
service
.
to_param
)
end
available_services
.
compact
end
def
disabled_services
...
...
@@ -1113,6 +1111,8 @@ class Project < ActiveRecord::Base
end
def
find_or_initialize_service
(
name
)
return
if
disabled_services
.
include?
(
name
)
service
=
find_service
(
services
,
name
)
return
service
if
service
...
...
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