Commit be85d1d2b203120402b95c88036b36d3b7db6dd4
1 parent
2c46b35b
Exists in
spb-stable
and in
2 other branches
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.
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 |