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/federal_subjects_controller.rb
2019-06-23 20:59:44 +05:00

22 lines
449 B
Ruby

# frozen_string_literal: true
class FederalSubjectsController < ApplicationController
before_action :set_federal_subject, except: :index
# GET /federal_subjects
def index
authorize :federal_subject
@federal_subjects = policy_scope(FederalSubject)
end
# GET /federal_subjects/:id
def show
authorize @federal_subject
end
private
def set_federal_subject
@federal_subject = FederalSubject.find params[:id]
end
end