remove unneeded Relation#all from Group#user_removed

git-svn-id: http://svn.redmine.org/redmine/trunk@12536 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-08 13:26:02 +00:00
parent 1c2c4c484e
commit 66bdc014d4
1 changed files with 0 additions and 1 deletions

View File

@ -68,7 +68,6 @@ class Group < Principal
MemberRole. MemberRole.
includes(:member). includes(:member).
where("#{Member.table_name}.user_id = ? AND #{MemberRole.table_name}.inherited_from IN (?)", user.id, member.member_role_ids). where("#{Member.table_name}.user_id = ? AND #{MemberRole.table_name}.inherited_from IN (?)", user.id, member.member_role_ids).
all.
each(&:destroy) each(&:destroy)
end end
end end