]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from Repository::Git model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 31 Jan 2014 10:15:52 +0000 (10:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 31 Jan 2014 10:15:52 +0000 (10:15 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12743 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index 89e740d873833db1c9ef1fec1f023a644fe38ea3..bb26a34f90e20ea8ad00a887d2c1e6ca67b4568f 100644 (file)
@@ -195,7 +195,7 @@ class Repository::Git < Repository
     revisions_copy = revisions.clone # revisions will change
     while offset < revisions_copy.size
       scmids = revisions_copy.slice(offset, limit).map{|x| x.scmid}
-      recent_changesets_slice = changesets.where(:scmid => scmids).all
+      recent_changesets_slice = changesets.where(:scmid => scmids)
       # Subtract revisions that redmine already knows about
       recent_revisions = recent_changesets_slice.map{|c| c.scmid}
       revisions.reject!{|r| recent_revisions.include?(r.scmid)}