]> source.dussan.org Git - redmine.git/commitdiff
Eager-load users.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Nov 2008 19:09:00 +0000 (19:09 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 10 Nov 2008 19:09:00 +0000 (19:09 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2007 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index 17f836b7bbf46488f7d506eec54eff4776149414..4b1ecc221f9c890d5659ec5cd56d65f6f4af3cd6 100644 (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? }