Initialize dashboard followings and nearby users in controller

This commit is contained in:
Anton Khorev 2025-02-19 03:53:29 +03:00
parent 79f5ccca31
commit 02d9467939
2 changed files with 6 additions and 7 deletions

View file

@ -10,5 +10,7 @@ class DashboardsController < ApplicationController
def show
@user = current_user
@followings = current_user.followings
@nearby_users = current_user.nearby - @followings
end
end