libertarian-party/partynest

View on GitHub
app/controllers/settings/sessions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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