libertarian-party/partynest

View on GitHub
app/controllers/staffs/contact_networks_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Staffs::ContactNetworksController < ApplicationController
  include PaginalController

  # GET /staff/contact_networks
  def index
    authorize [:staff, ContactNetwork]
    @contact_networks = policy_scope(
      ContactNetwork.order(codename: :asc),
      policy_scope_class: Staff::ContactNetworkPolicy::Scope,
    ).page(active_page)
  end
end