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::Reasons

#reasons

Attributes included from Policy::Authorization

#authorization_context

Attributes included from Policy::Core

#record

Method Summary

Methods included from Policy::Defaults

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

Methods included from Policy::CachedApply

prepended

Methods included from Policy::Cache

#apply_with_cache, #cache_key, #cache_namespace, #context_cache_key, prepended

Methods included from Policy::Aliases

prepended

Methods included from Policy::Reasons

prepended, #with_clean_reasons

Methods included from Policy::PreCheck

#allow!, #deny!, prepended, #run_pre_checks

Methods included from Policy::Authorization

prepended

Methods included from Policy::Core

#allowed_to?, #apply, #initialize, #resolve_rule

Methods included from ActionPolicy::Behaviours::PolicyFor

#authorization_context, #authorization_namespace, #policy_for