diff options
Diffstat (limited to 'app/models/member_role.rb')
-rw-r--r-- | app/models/member_role.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member_role.rb b/app/models/member_role.rb index a5de3a91d..f5789b325 100644 --- a/app/models/member_role.rb +++ b/app/models/member_role.rb @@ -54,7 +54,7 @@ class MemberRole < ActiveRecord::Base end def remove_role_from_group_users - MemberRole.find(:all, :conditions => { :inherited_from => id }).group_by(&:member).each do |member, member_roles| + MemberRole.where(:inherited_from => id).all.group_by(&:member).each do |member, member_roles| member_roles.each(&:destroy) if member && member.user Watcher.prune(:user => member.user, :project => member.project) |