From e5bb70422435d31e737dec2042beb637d43fc9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Tue, 11 Sep 2018 21:35:43 +0200 Subject: Simplify running --- app/models/ci/runner.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 37498da26a5..fcf65d4638d 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -270,8 +270,7 @@ module Ci running: Ci::Build.running .where(runner: self) .group(:project_id) - .pluck(:project_id, 'count(*)') - .to_h + .count } end -- cgit v1.2.1