Specify id field in the query whose result is passed to unfriended_by

This commit is contained in:
Raphael 2010-08-16 10:37:07 -07:00
parent e84b25b3f5
commit ad2d8f8b46

View file

@ -147,7 +147,7 @@ class User
if object.type == 'Person' && object.signature_valid?
Rails.logger.info( "the person id is #{object.post_id} the friend found is #{friends.first(object.post_id)}")
unfriended_by friends.first(object.post_id)
unfriended_by friends.first(:id => object.post_id)
else
object.perform self.id