]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from Repository::Subversion model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 02:18:47 +0000 (02:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 02:18:47 +0000 (02:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12730 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/subversion.rb

index c1fb746a98b3b911f61673563a9b655829aa277c..5c7b420c04da01167ec67fab749a4221e0c4b8c8 100644 (file)
@@ -96,7 +96,7 @@ class Repository::Subversion < Repository
     if identifiers.any?
       changesets_by_identifier =
         changesets.where(:revision => identifiers).
-          includes(:user, :repository).all.group_by(&:revision)
+          includes(:user, :repository).group_by(&:revision)
       entries_with_identifier.each do |entry|
         if m = changesets_by_identifier[entry.lastrev.identifier]
           entry.changeset = m.first