1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/controllers/staffs/contact_networks_controller.rb

12 lines
339 B
Ruby

# frozen_string_literal: true
class Staffs::ContactNetworksController < ApplicationController
# GET /staff/contact_networks
def index
authorize %i[staff contact_network]
@contact_networks = policy_scope(
ContactNetwork.order(codename: :asc),
policy_scope_class: Staff::ContactNetworkPolicy::Scope,
)
end
end