module Downgrade

Constants

VERSION

Attributes

block_switch[W]
cache_store[W]
middleware_switch[W]
path_switch[W]
redis[W]

Public Class Methods

block_switch() click to toggle source
# File lib/downgrade.rb, line 20
def block_switch
  @block_switch ||= Downgrade::Switch.new("block")
end
cache_store() click to toggle source
# File lib/downgrade.rb, line 32
def cache_store
  @cache_store ||= ActiveSupport::Cache::MemoryStore.new
end
middleware_switch() click to toggle source
# File lib/downgrade.rb, line 28
def middleware_switch
  @middleware_switch ||= Downgrade::Switch.new("middleware")
end
path_regexps=(regexps) click to toggle source
# File lib/downgrade.rb, line 12
def path_regexps=(regexps)
  Downgrade::Path.regexps = regexps
end
path_switch() click to toggle source
# File lib/downgrade.rb, line 24
def path_switch
  @path_switch ||= Downgrade::Switch.new("path")
end
redis() click to toggle source
# File lib/downgrade.rb, line 16
def redis
  @redis ||= Redis.new
end