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/staff/membership_apps_controller.rb
2018-12-13 12:01:06 +05:00

25 lines
550 B
Ruby

# frozen_string_literal: true
class Staff::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