12 lines
339 B
Ruby
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
|