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