Merge branch 'master' of github.com:diaspora/diaspora_rails into pivots

Conflicts:
	app/models/user.rb
This commit is contained in:
Raphael 2010-08-18 10:13:25 -07:00
commit 1685e0c28b

View file

@ -285,12 +285,13 @@ class User
def visible_person_by_id( id )
id = ensure_bson id
return self if id == person.id
return self.person if id == self.person.id
friends.detect{|x| x.id == id }
end
def group_by_id( id )
groups.detect{|x| x.id == ensure_bson( id ) }
id = ensure_bson id
groups.detect{|x| x.id == id }
end
def tommy?