From 619857e1a4ac46c3cd170f459d381f4c5905fd37 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 31 Jan 2014 10:15:52 +0000 Subject: [PATCH] remove unneeded Relation#all from Repository::Git model git-svn-id: http://svn.redmine.org/redmine/trunk@12743 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)} -- 2.39.5