Ensure bson on visible person

This commit is contained in:
Raphael 2010-08-17 19:56:21 -07:00
parent 9f9395bc9c
commit 9fcc02a580

View file

@ -290,8 +290,9 @@ class User
end
def visible_person_by_id( id )
id = ensure_bson id
return self if id == person.id
friends.detect{|x| x.id == ensure_bson( id ) }
friends.detect{|x| x.id == id }
end
def group_by_id( id )