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:
parent
0fa124a92c
commit
e417d755e9
|
@ -57,7 +57,7 @@ class GroupsController < ApplicationController
|
||||||
|
|
||||||
# GET /groups/1/edit
|
# GET /groups/1/edit
|
||||||
def edit
|
def edit
|
||||||
@group = Group.find(params[:id])
|
@group = Group.find(params[:id], :include => :projects)
|
||||||
end
|
end
|
||||||
|
|
||||||
# POST /groups
|
# POST /groups
|
||||||
|
|
Loading…
Reference in New Issue