From 3d46a49b970ad9e7d65b3afb08a9c676e1399270 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 11 Aug 2010 16:50:22 -0700 Subject: [PATCH] RS, DG; fixing Album.mine_or_friends --- app/models/album.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/album.rb b/app/models/album.rb index 302cb3b07..7c5b05884 100644 --- a/app/models/album.rb +++ b/app/models/album.rb @@ -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