]> git.openstreetmap.org Git - rails.git/blob - app/controllers/dashboards_controller.rb
Initialize dashboard followings and nearby users in controller
[rails.git] / app / controllers / dashboards_controller.rb
1 class DashboardsController < ApplicationController
2   layout "site"
3
4   before_action :authorize_web
5   before_action :set_locale
6
7   authorize_resource :class => false
8
9   before_action :check_database_readable
10
11   def show
12     @user = current_user
13     @followings = current_user.followings
14     @nearby_users = current_user.nearby - @followings
15   end
16 end