Ensure_bson on groups_with_person
This commit is contained in:
parent
b7d648e173
commit
5e439bdb28
1 changed files with 2 additions and 1 deletions
|
|
@ -293,7 +293,8 @@ class User
|
|||
end
|
||||
|
||||
def groups_with_person person
|
||||
groups.select {|group| group.person_ids.include? person.id}
|
||||
id = ensure_bson person.id
|
||||
groups.select {|group| group.person_ids.include? id}
|
||||
end
|
||||
protected
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue