From 8832cca13b9987e3af627d9a145f66c9c5c8016b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 27 Jan 2014 02:18:47 +0000 Subject: [PATCH] remove unneeded Relation#all from Repository::Subversion model git-svn-id: http://svn.redmine.org/redmine/trunk@12730 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/repository/subversion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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