From c4956091e182364a3e7bafecf707a3e6d6e725e2 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Tue, 14 Mar 2017 15:35:43 +0100 Subject: Eager load route for project & namespace --- app/controllers/dashboard/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb index 325ae565537..be00d765f73 100644 --- a/app/controllers/dashboard/projects_controller.rb +++ b/app/controllers/dashboard/projects_controller.rb @@ -42,7 +42,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController private def load_projects(base_scope) - projects = base_scope.sorted_by_activity.includes(:namespace) + projects = base_scope.sorted_by_activity.includes(:route, namespace: :route) filter_projects(projects) end -- cgit v1.2.1