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/org_unit_kinds_controller.rb

13 lines
342 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Staffs::OrgUnitKindsController < ApplicationController
# GET /staff/org_unit_kinds
def index
authorize [:staff, OrgUnitKind]
@org_unit_kinds = policy_scope(
OrgUnitKind.order(codename: :asc),
policy_scope_class: Staff::OrgUnitKindPolicy::Scope,
).page(params[:page])
end
end