From 6f68a3667941537e45c2c62c66330cf6a047508d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 10 Nov 2008 19:09:00 +0000 Subject: [PATCH] Eager-load users. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2007 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 17f836b7b..4b1ecc221 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -98,7 +98,8 @@ class RepositoriesController < ApplicationController params['page'] @changesets = @repository.changesets.find(:all, :limit => @changeset_pages.items_per_page, - :offset => @changeset_pages.current.offset) + :offset => @changeset_pages.current.offset, + :include => :user) respond_to do |format| format.html { render :layout => false if request.xhr? } -- 2.39.5