João José de Souza

Results 3 comments of João José de Souza

Hi Vysakh, thanks for the reply! I did as you mentined but the issue continues, now in the function. In the console, when I try it: current_user.followees(User) is return [].

Sorry, I'm nb. I'm trying do that.... if followees_ids @activities = PublicActivity::Activity.where(owner_id: followees_ids, owner_type: "User") end ... def followees_ids current_user.followees(User) && current_user.followees(User).pluck(:id) end But still got a msg: "undefined method...

It return [] in console. I think that it solve the problem... unless current_user.followees(User).empty? followees_ids = current_user.followees(User).pluck(:id) end