class CacheCrispies::Configuration

Constants

SETTINGS

Public Class Methods

new() click to toggle source
# File lib/cache_crispies/configuration.rb, line 17
def initialize
  reset!
end

Public Instance Methods

reset!() click to toggle source

Resets all values to their defaults. Useful for testing.

# File lib/cache_crispies/configuration.rb, line 25
def reset!
  @cache_store = Rails.cache || ActiveSupport::Cache::NullStore.new
  @etags = false
  @cache_key_method = :cache_key
end