Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# put this in lib/nil_store.rb:
class NilStore < ActiveSupport::Cache::Store
def initialize(location='//myloc'); end
def read(name, options = nil); super; end
def write(name, value, options = nil); super; end
def delete(name, options = nil); super; end
def delete_matched(matcher, options = nil); super; end
end
# and then in environments/development.rb:
require 'nil_store'
config.cache_store = NilStore.new
# or you could just turn on development class caching:
config.cache_classes = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment