diff options
author | Daniel Aquino <daniel.aquino@nasdaqomx.com> | 2014-06-03 19:46:47 +0400 |
---|---|---|
committer | Daniel Aquino <daniel.aquino@nasdaqomx.com> | 2014-06-03 19:46:47 +0400 |
commit | be85d1d2b203120402b95c88036b36d3b7db6dd4 (patch) | |
tree | 6e70d19685b6c52c2c6cf02eb447435421365d01 /app | |
parent | 2c46b35b100be89e0549336616391aef2337454d (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.rb | 2 |
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 |