]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from Repository::Mercurial#latest_changesets
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 05:25:05 +0000 (05:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 05:25:05 +0000 (05:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12562 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/mercurial.rb

index 79a001e41f89856dac17c6166cfabc3740fe6264..60999c993908fee6ecff44fa33bdb2f6e6f0397c 100644 (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)