Merge branch 'friend-refactor' of github.com:diaspora/diaspora_rails into selector

This commit is contained in:
ilya 2010-08-16 11:50:51 -07:00
commit 9df38199ab

View file

@ -190,11 +190,11 @@ class User
end
def friend_by_id( id )
friends.detect{|x| x.id == ensure_bson id }
friends.detect{|x| x.id == ensure_bson( id ) }
end
def group_by_id( id )
groups.detect{|x| x.id == ensure_bson id }
groups.detect{|x| x.id == ensure_bson( id ) }
end
protected