remove unneeded Relation#all from Repository::Mercurial#latest_changesets

git-svn-id: http://svn.redmine.org/redmine/trunk@12562 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 05:25:05 +00:00
parent 5315943bb9
commit 1ddabbc874
1 changed files with 1 additions and 2 deletions

View File

@ -95,9 +95,8 @@ class Repository::Mercurial < Repository
changesets.
includes(:user).
where(latest_changesets_cond(path, rev, limit)).
limit(limit).
order("#{Changeset.table_name}.id DESC").
all
limit(limit)
end
def latest_changesets_cond(path, rev, limit)