summaryrefslogtreecommitdiffstats
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 13:26:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 13:26:02 +0000
commit66bdc014d4170b0edec420018da71ea0595c0d55 (patch)
tree8a9325020e21b8081e783d77132e6c5f8243979a /app/models/group.rb
parent1c2c4c484e9d3b90c6338b26598efc1be16daa51 (diff)
downloadredmine-66bdc014d4170b0edec420018da71ea0595c0d55.tar.gz
redmine-66bdc014d4170b0edec420018da71ea0595c0d55.zip
remove unneeded Relation#all from Group#user_removed
git-svn-id: http://svn.redmine.org/redmine/trunk@12536 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb1
1 files changed, 0 insertions, 1 deletions
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