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

23 lines
427 B
Ruby
Raw Normal View History

2019-01-31 17:38:06 -05:00
# frozen_string_literal: true
class CountryStatesController < ApplicationController
before_action :set_country_state, except: :index
# GET /country_states
def index
authorize :country_state
@country_states = policy_scope(CountryState)
end
# GET /country_states/:id
def show
authorize @country_state
end
private
def set_country_state
@country_state = CountryState.find params[:id]
end
end