DG IZ; find_all_by instead of find_by
This commit is contained in:
parent
f4f377e7e7
commit
2614cb5add
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.find_by_person_id(current_user.friend_ids)
|
||||
Album.find_all_by_person_id(current_user.friend_ids)
|
||||
else
|
||||
current_user.person.albums
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue