Module: ActionPolicy::Policy::CachedApply
- Included in:
- Base
- Defined in:
- lib/action_policy/policy/cached_apply.rb
Overview
Per-policy cache for applied rules.
When you call ‘apply` twice on the same policy and for the same rule, the check (and pre-checks) is only called once.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
- .prepended(base) ⇒ Object (also: included)
Class Method Details
.prepended(base) ⇒ Object Also known as: included
11 12 13 |
# File 'lib/action_policy/policy/cached_apply.rb', line 11 def prepended(base) base.prepend InstanceMethods end |