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
This commit is contained in:
Jean-Philippe Lang 2010-05-09 11:31:39 +00:00
parent 0fa124a92c
commit e417d755e9
1 changed files with 1 additions and 1 deletions

View File

@ -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