From: Jean-Philippe Lang Date: Mon, 10 Nov 2008 19:09:00 +0000 (+0000) Subject: Eager-load users. X-Git-Tag: 0.8.0-RC1~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f68a3667941537e45c2c62c66330cf6a047508d;p=redmine.git Eager-load users. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2007 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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? }