Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cache_money.rb

Class Method Summary collapse

Class Method Details

.is_cached(options = {}) ⇒ Object



29
30
31
32
33
# File 'lib/cache_money.rb', line 29

def self.is_cached(options = {})
  options.assert_valid_keys(:ttl, :repository, :version)
  include Cash unless ancestors.include?(Cash)
  Cash::Config.create(self, options)
end