From be85d1d2b203120402b95c88036b36d3b7db6dd4 Mon Sep 17 00:00:00 2001 From: Daniel Aquino Date: Tue, 3 Jun 2014 11:46:47 -0400 Subject: [PATCH] project: ci_service should only catch ci services --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 1e74ae7..758ef14 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 -- libgit2 0.21.2