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.
This commit is contained in:
Daniel Aquino 2014-06-03 11:46:47 -04:00
parent 2c46b35b10
commit be85d1d2b2
1 changed files with 1 additions and 1 deletions

View File

@ -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