Class: ActionPolicy::Base

Inherits:
Object
  • Object
show all
Includes:
Policy::Aliases, Policy::Authorization, Policy::Cache, Policy::CachedApply, Policy::Core, Policy::Defaults, Policy::PreCheck, Policy::Reasons
Defined in:
lib/action_policy/base.rb

Overview

Base class for application policies.

Constant Summary

Constants included from Policy::Aliases

Policy::Aliases::DEFAULT

Instance Attribute Summary

Attributes included from Policy::Authorization

#authorization_context

Attributes included from Policy::Core

#record, #result

Method Summary

Methods included from Policy::Defaults

#create?, included, #index?, #manage?

Methods included from Policy::CachedApply

#apply

Methods included from Policy::Cache

#apply, #apply_with_cache, #cache_key, #cache_namespace, #context_cache_key, included

Methods included from Policy::Aliases

included, #resolve_rule

Methods included from Policy::Reasons

#allowed_to?, included

Methods included from Policy::PreCheck

#__apply__, #allow!, #deny!, included, #run_pre_checks

Methods included from Policy::Authorization

included, #initialize

Methods included from Policy::Core

#__apply__, #allowed_to?, #apply, included, #initialize, #resolve_rule, #with_clean_result

Methods included from ActionPolicy::Behaviours::PolicyFor

#authorization_context, #authorization_namespace, #policy_for