diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-01-30 18:26:40 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-06 16:12:24 -0600 |
commit | c8b63a28afa811881b617546fe94a19378585a04 (patch) | |
tree | 2b1bd2e9d52e059de0589a014f518f23e9b71ca3 /app/controllers/projects/environments_controller.rb | |
parent | 3aa1264dc6c0de3625bb1a2d6a0ee90140a2f519 (diff) | |
download | gitlab-ce-c8b63a28afa811881b617546fe94a19378585a04.tar.gz |
Improve performance of finding last deployed environment
Diffstat (limited to 'app/controllers/projects/environments_controller.rb')
-rw-r--r-- | app/controllers/projects/environments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb index 87cc36253f1..e2abcd45b5f 100644 --- a/app/controllers/projects/environments_controller.rb +++ b/app/controllers/projects/environments_controller.rb @@ -10,7 +10,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController def index @scope = params[:scope] - @environments = project.environments + @environments = project.environments.includes(:last_deployment) respond_to do |format| format.html |