diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 18:06:41 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 19:34:03 +0300 |
commit | 16a2eba52b8286533d881ec1a0454ca734d41c3f (patch) | |
tree | de79410c3b3bd9eebcd09f6f193ebc77f1a2593d /app/controllers | |
parent | 37e7fe2cc90de24c563fe70e4eff6f5d954bb630 (diff) |
Count number of queries
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/builds_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb index add66ce9f84..04e8cdf6256 100644 --- a/app/controllers/projects/builds_controller.rb +++ b/app/controllers/projects/builds_controller.rb @@ -19,6 +19,11 @@ class Projects::BuildsController < Projects::ApplicationController else @builds end + @builds = @builds.includes([ + { pipeline: :project }, + :project, + :tags + ]) @builds = @builds.page(params[:page]).per(30) end |