Module: Bootscale::ActiveSupport
- Defined in:
- lib/bootscale/active_support.rb
Defined Under Namespace
Modules: CacheConcern Classes: Cache, DevelopmentCache
Class Attribute Summary collapse
-
.cache ⇒ Object
readonly
Returns the value of attribute cache.
-
.cache_directory ⇒ Object
readonly
Returns the value of attribute cache_directory.
Class Method Summary collapse
Class Attribute Details
.cache ⇒ Object (readonly)
Returns the value of attribute cache.
4 5 6 |
# File 'lib/bootscale/active_support.rb', line 4 def cache @cache end |
.cache_directory ⇒ Object (readonly)
Returns the value of attribute cache_directory.
4 5 6 |
# File 'lib/bootscale/active_support.rb', line 4 def cache_directory @cache_directory end |
Class Method Details
.cache_builder ⇒ Object
6 7 8 |
# File 'lib/bootscale/active_support.rb', line 6 def cache_builder @cache_builder ||= CacheBuilder.new end |
.setup(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/bootscale/active_support.rb', line 10 def setup( = {}) @cache_directory = .fetch(:cache_directory, Bootscale.cache_directory) require 'active_support' require 'active_support/dependencies' cache_implementation = .fetch(:development_mode, false) ? DevelopmentCache : Cache @cache = cache_implementation.new(cache_directory) require_relative 'active_support/core_ext' end |