Module: Rails

Defined in:
lib/domain_switcher/rails.rb

Overview

Override the default Rails.cache method in order to user the current memcache store

Class Method Summary collapse

Class Method Details

.cacheObject



4
5
6
# File 'lib/domain_switcher/rails.rb', line 4

def cache
  Thread.current[:domain_switcher_cache] || RAILS_CACHE
end