]> git.openstreetmap.org Git - rails.git/blob - app/controllers/dashboards_controller.rb
Fix header button height
[rails.git] / app / controllers / dashboards_controller.rb
1 # frozen_string_literal: true
2
3 class DashboardsController < ApplicationController
4   layout :site_layout
5
6   before_action :authorize_web
7   before_action :set_locale
8   before_action :update_totp
9
10   authorize_resource :class => false
11
12   before_action :check_database_readable
13
14   def show
15     @followings = current_user.followings
16     @nearby_users = current_user.nearby - @followings
17   end
18 end