From e417d755e94eefb31a7a0b91e03fde41c4c84d1e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 May 2010 11:31:39 +0000 Subject: [PATCH] Eager load group projects to avoid N SQL queries. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3735 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/groups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 68a0e9d38..4bd732fc1 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -57,7 +57,7 @@ class GroupsController < ApplicationController # GET /groups/1/edit def edit - @group = Group.find(params[:id]) + @group = Group.find(params[:id], :include => :projects) end # POST /groups