Method: ActionPolicy::Policy::Cache#apply_with_cache
- Defined in:
- lib/action_policy/policy/cache.rb
#apply_with_cache(rule) ⇒ Object
39 40 41 42 43 |
# File 'lib/action_policy/policy/cache.rb', line 39 def apply_with_cache(rule) = self.class.cached_rules.fetch(rule) ActionPolicy.cache_store.fetch(cache_key(rule), ) { yield } end |