Module: Covercache::ModelConcern

Extended by:
ActiveSupport::Concern
Defined in:
lib/covercache.rb

Overview

Extend and Include to model Base helper so cache method is available in all contexts. (yes, it is form PackRat too)

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#covercache_keysObject



247
248
249
# File 'lib/covercache.rb', line 247

def covercache_keys
  self.class.send :covercache_keys
end

#covercache_keys=(keys) ⇒ Object



251
252
253
# File 'lib/covercache.rb', line 251

def covercache_keys=(keys)
  self.class.send :covercache_keys=, keys
end

#expire_covercacheObject Also known as: covercache_flush_cache!

flush cache on after_commit callback



256
257
258
# File 'lib/covercache.rb', line 256

def expire_covercache
  self.class.send :expire_covercache
end