class Rack::MiniProfiler::AbstractStore
Constants
- MAX_TOKEN_AGE
maximum age of allowed tokens before cycling in seconds
Public Instance Methods
allowed_tokens()
click to toggle source
a list of tokens that are permitted to access profiler in whitelist mode
# File lib/mini_profiler/storage/abstract_store.rb, line 38 def allowed_tokens raise NotImplementedError.new("allowed_tokens is not implemented") end
diagnostics(user)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 32 def diagnostics(user) # this is opt in, no need to explode if not implemented "" end
get_unviewed_ids(user)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 28 def get_unviewed_ids(user) raise NotImplementedError.new("get_unviewed_ids is not implemented") end
load(id)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 12 def load(id) raise NotImplementedError.new("load is not implemented") end
save(page_struct)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 8 def save(page_struct) raise NotImplementedError.new("save is not implemented") end
set_all_unviewed(user, ids)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 24 def set_all_unviewed(user, ids) raise NotImplementedError.new("set_all_unviewed is not implemented") end
set_unviewed(user, id)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 16 def set_unviewed(user, id) raise NotImplementedError.new("set_unviewed is not implemented") end
set_viewed(user, id)
click to toggle source
# File lib/mini_profiler/storage/abstract_store.rb, line 20 def set_viewed(user, id) raise NotImplementedError.new("set_viewed is not implemented") end