Module: ActionPolicy::Policy::CachedApply::InstanceMethods
- Defined in:
- lib/action_policy/policy/cached_apply.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#apply(rule) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/action_policy/policy/cached_apply.rb', line 19 def apply(rule) @__rules_cache__ ||= {} return @__rules_cache__[rule] if @__rules_cache__.key?(rule) @__rules_cache__[rule] = super end |