Module: MasterCache
- Defined in:
- lib/master_cache/config.rb,
lib/master_cache/version.rb
Defined Under Namespace
Modules: Generators, ModelExtension Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
-
.config ⇒ Object
Global settings for MasterCache.
-
.configure {|@config ||= MasterCache::Configuration.new| ... } ⇒ Object
Configures global settings for MasterCache MasterCache.configure do |config| config.all_name = :instances end.
Class Method Details
.config ⇒ Object
Global settings for MasterCache
13 14 15 |
# File 'lib/master_cache/config.rb', line 13 def self.config @config end |
.configure {|@config ||= MasterCache::Configuration.new| ... } ⇒ Object
Configures global settings for MasterCache
MasterCache.configure do |config|
config.all_name = :instances
end
8 9 10 |
# File 'lib/master_cache/config.rb', line 8 def self.configure(&block) yield @config ||= MasterCache::Configuration.new end |