Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10914 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
1951c6a3fd
commit
5b21efd4a4
10 files changed
+29
-26
No files matched your search
@@ -141,10 +141,11 @@ class RepositoriesController < ApplicationController
|
||||
@changeset_pages = Paginator.new self, @changeset_count,
|
||||
per_page_option,
|
||||
params['page']
|
||||
@changesets = @repository.changesets.find(:all,
|
||||
:limit => @changeset_pages.items_per_page,
|
||||
:offset => @changeset_pages.current.offset,
|
||||
:include => [:user, :repository, :parents])
|
||||
@changesets = @repository.changesets.
|
||||
limit(@changeset_pages.items_per_page).
|
||||
offset(@changeset_pages.current.offset).
|
||||
includes(:user, :repository, :parents).
|
||||
all
|
||||
|
||||
respond_to do |format|
|
||||
format.html { render :layout => false if request.xhr? }
|
||||
|
||||
Reference in new issue
Block a user