turns out that instansiating a storage provider and assigning it nowhere, just don't work

This commit is contained in:
Sam 2013-03-20 23:54:28 -07:00
parent 4a8563461a
commit e3d30f1366
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
GIT GIT
remote: git://github.com/SamSaffron/MiniProfiler remote: git://github.com/SamSaffron/MiniProfiler
revision: 00be389867a43f5b95cf520c521d00b22aa8f1c2 revision: e0bf4fa12d97e21d40adacc3e09a7648d6d9bf31
specs: specs:
rack-mini-profiler (0.1.23) rack-mini-profiler (0.1.23)
rack (>= 1.1.3) rack (>= 1.1.3)

View file

@ -1,7 +1,7 @@
# If Mini Profiler is included via gem # If Mini Profiler is included via gem
if defined?(Rack::MiniProfiler) if defined?(Rack::MiniProfiler)
Rack::MiniProfiler::RedisStore.new(:connection => DiscourseRedis.new) Rack::MiniProfiler.config.storage_instance = Rack::MiniProfiler::RedisStore.new(:connection => DiscourseRedis.new)
# For our app, let's just show mini profiler always, polling is chatty so nuke that # For our app, let's just show mini profiler always, polling is chatty so nuke that
Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env| Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|