Commit 239b84e933108540618fc3d07b8818bfc82cc142

Authored by Dmitriy Zaporozhets
2 parents ab7a9347 be85d1d2

Merge pull request #7068 from chino/only-check-ci-status-when-ci-service-enabled

project: ci_service should only catch ci services
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/project.rb
@@ -330,7 +330,7 @@ class Project < ActiveRecord::Base @@ -330,7 +330,7 @@ class Project < ActiveRecord::Base
330 end 330 end
331 331
332 def ci_service 332 def ci_service
333 - @ci_service ||= services.select(&:activated?).first 333 + @ci_service ||= ci_services.select(&:activated?).first
334 end 334 end
335 335
336 # For compatibility with old code 336 # For compatibility with old code