# frozen_string_literal: true
class ApplicationPolicy
attr_reader :user, :record
def initialize(user, record)
@user = user
@record = record
end
def index?
false
def show?
def create?
def new?
create?
def update?
def edit?
update?
def destroy?
def policy(record)
Pundit.policy user, record
class Scope
attr_reader :user, :scope
def initialize(user, scope)
@scope = scope
def resolve
scope.none