summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-12-22 00:20:54 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-12-22 00:28:38 +0100
commita495b9bc184c799097be1ff72e5328c7080cceb6 (patch)
treeb28ea0e2284a116f3811d2b1c72fd8b5618933e5
parentf898e52a00741c620733853bb834d89695ce50ec (diff)
downloadgitlab-ce-a495b9bc184c799097be1ff72e5328c7080cceb6.tar.gz
Deprecate GitLabCiService making it to always be inactive
-rw-r--r--app/models/project_services/gitlab_ci_service.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/project_services/gitlab_ci_service.rb b/app/models/project_services/gitlab_ci_service.rb
index d73182d40ac..b64d97ce75d 100644
--- a/app/models/project_services/gitlab_ci_service.rb
+++ b/app/models/project_services/gitlab_ci_service.rb
@@ -18,6 +18,11 @@
# note_events :boolean default(TRUE), not null
#
+# TODO(ayufan): The GitLabCiService is deprecated and the type should be removed when the database entries are removed
class GitlabCiService < CiService
- # this is no longer used
+ # We override the active accessor to always make GitLabCiService disabled
+ # Otherwise the GitLabCiService can be picked, but should never be since it's deprecated
+ def active
+ false
+ end
end