Sha256: 79f478767ced53c6a5e02c5e3ce982d659acf597c686f1a6ee20f4514b0a7669
Contents?: true
Size: 1.15 KB
Versions: 15
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true 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
15 entries across 15 versions & 1 rubygems