From f4f377e7e7ba1d8ba8ec5b2139ffd06c612774bc Mon Sep 17 00:00:00 2001 From: ilya Date: Tue, 17 Aug 2010 18:26:48 -0700 Subject: [PATCH] DG IZ finding albums by person_id --- app/models/album.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/album.rb b/app/models/album.rb index 0275b43fe..157abe463 100644 --- a/app/models/album.rb +++ b/app/models/album.rb @@ -27,7 +27,7 @@ class Album def self.mine_or_friends(friend_param, current_user) if friend_param - Album.where(:person_id => current_user.friend_ids) + Album.find_by_person_id(current_user.friend_ids) else current_user.person.albums end