From be85d1d2b203120402b95c88036b36d3b7db6dd4 Mon Sep 17 00:00:00 2001 From: Daniel Aquino Date: Tue, 3 Jun 2014 11:46:47 -0400 Subject: 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. --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3