1 # frozen_string_literal: true
 
   3 class DashboardsController < ApplicationController
 
   6   before_action :authorize_web
 
   7   before_action :set_locale
 
   9   authorize_resource :class => false
 
  11   before_action :check_database_readable
 
  14     @followings = current_user.followings
 
  15     @nearby_users = current_user.nearby - @followings