Module: ActiveModelCachers

Defined in:
lib/active_model_cachers.rb,
lib/active_model_cachers/config.rb,
lib/active_model_cachers/version.rb,
lib/active_model_cachers/nil_object.rb,
lib/active_model_cachers/false_object.rb,
lib/active_model_cachers/cache_service.rb,
lib/active_model_cachers/active_record/cacher.rb,
lib/active_model_cachers/cache_service_factory.rb,
lib/active_model_cachers/active_record/extension.rb,
lib/active_model_cachers/active_record/attr_model.rb,
lib/active_model_cachers/active_record/patch_rails_3.rb

Defined Under Namespace

Modules: ActiveRecord, Hook Classes: CacheService, CacheServiceFactory, ColumnValueCache, Config, FalseObject, NilObject

Constant Summary collapse

VERSION =
"2.1.0"

Class Method Summary collapse

Class Method Details

.config {|@config| ... } ⇒ Object

Yields:


10
11
12
13
14
# File 'lib/active_model_cachers.rb', line 10

def self.config
  @config ||= Config.new
  yield(@config) if block_given?
  return @config
end