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



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

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