Initialize dashboard followings and nearby users in controller
This commit is contained in:
parent
79f5ccca31
commit
02d9467939
2 changed files with 6 additions and 7 deletions
|
@ -10,5 +10,7 @@ class DashboardsController < ApplicationController
|
|||
|
||||
def show
|
||||
@user = current_user
|
||||
@followings = current_user.followings
|
||||
@nearby_users = current_user.nearby - @followings
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue