Sha256: 0248e8091ac6b3ee0bab96d66778328d79ee486468a550e20e7342cb396fe65a
Contents?: true
Size: 1.12 KB
Versions: 9
Compression:
Stored size: 1.12 KB
Contents
module Rack class MiniProfiler class AbstractStore # maximum age of allowed tokens before cycling in seconds MAX_TOKEN_AGE = 1800 def save(page_struct) raise NotImplementedError.new("save is not implemented") end def load(id) raise NotImplementedError.new("load is not implemented") end def set_unviewed(user, id) raise NotImplementedError.new("set_unviewed is not implemented") end def set_viewed(user, id) raise NotImplementedError.new("set_viewed is not implemented") end def set_all_unviewed(user, ids) raise NotImplementedError.new("set_all_unviewed is not implemented") end def get_unviewed_ids(user) raise NotImplementedError.new("get_unviewed_ids is not implemented") end def diagnostics(user) # this is opt in, no need to explode if not implemented "" end # a list of tokens that are permitted to access profiler in whitelist mode def allowed_tokens raise NotImplementedError.new("allowed_tokens is not implemented") end end end end
Version data entries
9 entries across 9 versions & 2 rubygems