Module: ActionPolicy::Ext::PolicyCacheKey

Defined in:
lib/action_policy/ext/policy_cache_key.rb

Overview

Adds #_policy_cache_key method to Object, which just call #policy_cache_key or #cache_key or #object_id (if ‘use_object_id` parameter is set to true).

For other core classes returns string representation.

Raises ArgumentError otherwise.

Defined Under Namespace

Modules: ObjectExt