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

Class Method Details

.configureConfig Also known as: config

Set the configuration options. Best used by passing a block.

ShamanCache.configure do |config| config.cache = Rails.cache end

Examples:

Set up configuration options.

Returns:

  • (Config)

    The configuration object.



13
14
15
# File 'lib/grape-shaman_cache/config.rb', line 13

def configure
  block_given? ? yield(ShamanCache::Config) : ShamanCache::Config
end