mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user