Module: ActiveModel::Caching

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_model/caching.rb,
lib/active_model/caching/version.rb

Overview

Provides with a set of methods allowing to cache data structures at the object level

Constant Summary collapse

VERSION =
"0.1.0"
@@cache_store =
ActiveSupport::Cache::MemoryStore.new

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



18
19
20
# File 'lib/active_model/caching.rb', line 18

def setup
  yield self
end