]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/dashboards_controller.rb
Initialize dashboard followings and nearby users in controller
[rails.git] / app / controllers / dashboards_controller.rb
index 540683d25ea0e89c2ed63b55f8d7949d5cdbfe9d..54dba26d33de85f12ccaacf1d54681382ec5c906 100644 (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