Permalink
Browse files

Disconsider reputation on group users

  • Loading branch information...
Alex Bredariol Grilo
Alex Bredariol Grilo committed Nov 25, 2011
1 parent 715ef23 commit 64434b0550c5806c3d8a61295f756ceb539521aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/group.rb
View
@@ -169,12 +169,12 @@ def add_member(user, role = 'user')
end
def users(conditions = {})
- User.all(conditions.merge("membership_list.#{self.id}.reputation" => {:$exists => true}))
+ User.all(conditions)
end
alias_method :members, :users
def paginate_users(conditions = {})
- User.paginate(conditions.merge("membership_list.#{self.id}.reputation" => {:$exists => true}))
+ User.paginate(conditions)
end
def pending?

0 comments on commit 64434b0

Please sign in to comment.