RS, DG; fixing Album.mine_or_friends

This commit is contained in:
Raphael 2010-08-11 16:50:22 -07:00
parent cf5476f601
commit 3d46a49b97

View file

@ -26,9 +26,9 @@ class Album
def self.mine_or_friends(friend_param, current_user)
if friend_param
Album.where(:person_id.ne => current_user.person.id)
Album.where(:person_id.ne => current_user.person.id.to_s)
else
Album.where(:person_id => current_user.person.id)
Album.where(:person_id => current_user.person.id.to_s)
end
end