From 1ddabbc874d33005f794f4536ca91fafc1fb9ca6 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 05:25:05 +0000 Subject: [PATCH] remove unneeded Relation#all from Repository::Mercurial#latest_changesets git-svn-id: http://svn.redmine.org/redmine/trunk@12562 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/mercurial.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb index 79a001e41..60999c993 100644 --- a/app/models/repository/mercurial.rb +++ b/app/models/repository/mercurial.rb @@ -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)