]> git.openstreetmap.org Git - rails.git/blob - app/controllers/dashboards_controller.rb
Add frozen_string_literal comments to ruby files
[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
9   authorize_resource :class => false
10
11   before_action :check_database_readable
12
13   def show
14     @followings = current_user.followings
15     @nearby_users = current_user.nearby - @followings
16   end
17 end