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

25 lines
551 B
Ruby

# frozen_string_literal: true
class Staffs::MembershipAppsController < ApplicationController
before_action :set_membership_app, except: :index
# GET /staff/membership_apps
def index
authorize %i[staff membership_app]
@membership_apps = policy_scope(
MembershipApp,
policy_scope_class: Staff::MembershipAppPolicy::Scope,
)
end
# GET /staff/membership_apps/:id
def show
authorize [:staff, @membership_app]
end
private
def set_membership_app
@membership_app = MembershipApp.find params[:id]
end
end