diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-05-09 11:31:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-05-09 11:31:39 +0000 |
commit | e417d755e94eefb31a7a0b91e03fde41c4c84d1e (patch) | |
tree | f1f2cca050a2e6f847d8d6f4a7bf146e14e78db7 /app/controllers/groups_controller.rb | |
parent | 0fa124a92ca7608543575fe24cfd8cec78441e9f (diff) | |
download | redmine-e417d755e94eefb31a7a0b91e03fde41c4c84d1e.tar.gz redmine-e417d755e94eefb31a7a0b91e03fde41c4c84d1e.zip |
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
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r-- | app/controllers/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |