Eager-load users.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2007 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-11-10 19:09:00 +00:00
parent 79c33bbc83
commit 6f68a36679
1 changed files with 2 additions and 1 deletions

View File

@ -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? }