DG IZ finding albums by person_id
This commit is contained in:
parent
daf08cd9f9
commit
f4f377e7e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue