Module: Grape::ShamanCache
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/grape-shaman_cache/config.rb,
lib/grape-shaman_cache/version.rb,
lib/grape-shaman_cache/shaman_cache.rb
Defined Under Namespace
Modules: Config
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.configure ⇒ Config
(also: config)
Set the configuration options.
Class Method Details
.configure ⇒ Config Also known as: config
Set the configuration options. Best used by passing a block.
ShamanCache.configure do |config| config.cache = Rails.cache end
13 14 15 |
# File 'lib/grape-shaman_cache/config.rb', line 13 def configure block_given? ? yield(ShamanCache::Config) : ShamanCache::Config end |