Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDaniel Aquino <daniel.aquino@nasdaqomx.com>2014-06-03 19:46:47 +0400
committerDaniel Aquino <daniel.aquino@nasdaqomx.com>2014-06-03 19:46:47 +0400
commitbe85d1d2b203120402b95c88036b36d3b7db6dd4 (patch)
tree6e70d19685b6c52c2c6cf02eb447435421365d01 /app
parent2c46b35b100be89e0549336616391aef2337454d (diff)
project: ci_service should only catch ci services
ci_service should return true if a ci service is enabled. Currently it's checking for any service being enabled instead of only services in the ci category.
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 1e74ae735ba..758ef14703c 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -330,7 +330,7 @@ class Project < ActiveRecord::Base
end
def ci_service
- @ci_service ||= services.select(&:activated?).first
+ @ci_service ||= ci_services.select(&:activated?).first
end
# For compatibility with old code