]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/dashboards_controller.rb
Remove current user check from dashboard view
[rails.git] / app / controllers / dashboards_controller.rb
index 540683d25ea0e89c2ed63b55f8d7949d5cdbfe9d..cb73cc38f35baaa76214ca5f15c19d12c400140d 100644 (file)
@@ -9,6 +9,7 @@ class DashboardsController < ApplicationController
   before_action :check_database_readable
 
   def show
-    @user = current_user
+    @followings = current_user.followings
+    @nearby_users = current_user.nearby - @followings
   end
 end