Method: CanTango::Ability::Cache#initialize
- Defined in:
- lib/cantango/ability/cache.rb
#initialize(ability, options = {}) ⇒ Cache
Returns a new instance of Cache.
14 15 16 17 18 19 |
# File 'lib/cantango/ability/cache.rb', line 14 def initialize ability, = {} @ability = ability @cache_key = [:cache_key] @key_method_names = [:key_method_names] debug "Creating cache with key: #{cache_key.inspect} on #{key_method_names.inspect}" end |