From: Toshi MARUYAMA Date: Wed, 8 Jan 2014 13:26:02 +0000 (+0000) Subject: remove unneeded Relation#all from Group#user_removed X-Git-Tag: 2.5.0~363 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=66bdc014d4170b0edec420018da71ea0595c0d55;p=redmine.git remove unneeded Relation#all from Group#user_removed git-svn-id: http://svn.redmine.org/redmine/trunk@12536 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/group.rb b/app/models/group.rb index 5d49a138a..61165bf7b 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -68,7 +68,6 @@ class Group < Principal MemberRole. includes(:member). where("#{Member.table_name}.user_id = ? AND #{MemberRole.table_name}.inherited_from IN (?)", user.id, member.member_role_ids). - all. each(&:destroy) end end