summaryrefslogtreecommitdiffstats
path: root/app/models/repository
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-31 10:15:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-31 10:15:52 +0000
commit619857e1a4ac46c3cd170f459d381f4c5905fd37 (patch)
tree6afd77866dbd6b87de6a560021db2578896d736d /app/models/repository
parent85749486173662e351c3b03c2bc688d869617b16 (diff)
downloadredmine-619857e1a4ac46c3cd170f459d381f4c5905fd37.tar.gz
redmine-619857e1a4ac46c3cd170f459d381f4c5905fd37.zip
remove unneeded Relation#all from Repository::Git model
git-svn-id: http://svn.redmine.org/redmine/trunk@12743 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r--app/models/repository/git.rb2
1 files changed, 1 insertions, 1 deletions
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)}