app/controllers/settings/sessions_controller.rb
# frozen_string_literal: true
class Settings::SessionsController < ApplicationController
include PaginalController
before_action :skip_policy_scope, only: :index
# GET /settings/sessions
def index
authorize [:settings, Session]
@sessions = current_account.sessions.order(logged_at: :desc)
.page(active_page)
end
end