From: Toshi MARUYAMA Date: Mon, 27 Jan 2014 02:18:47 +0000 (+0000) Subject: remove unneeded Relation#all from Repository::Subversion model X-Git-Tag: 2.5.0~170 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8832cca13b9987e3af627d9a145f66c9c5c8016b;p=redmine.git remove unneeded Relation#all from Repository::Subversion model git-svn-id: http://svn.redmine.org/redmine/trunk@12730 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index c1fb746a9..5c7b420c0 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -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