From: Toshi MARUYAMA Date: Fri, 31 Jan 2014 10:15:52 +0000 (+0000) Subject: remove unneeded Relation#all from Repository::Git model X-Git-Tag: 2.5.0~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=619857e1a4ac46c3cd170f459d381f4c5905fd37;p=redmine.git remove unneeded Relation#all from Repository::Git model git-svn-id: http://svn.redmine.org/redmine/trunk@12743 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 89e740d87..bb26a34f9 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -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)}