From e3d30f1366d04e8677849c9313567266a17eeb24 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 20 Mar 2013 23:54:28 -0700 Subject: [PATCH] turns out that instansiating a storage provider and assigning it nowhere, just don't work --- Gemfile.lock | 2 +- config/initializers/mini_profiler.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 378c93949..28784de7c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: git://github.com/SamSaffron/MiniProfiler - revision: 00be389867a43f5b95cf520c521d00b22aa8f1c2 + revision: e0bf4fa12d97e21d40adacc3e09a7648d6d9bf31 specs: rack-mini-profiler (0.1.23) rack (>= 1.1.3) diff --git a/config/initializers/mini_profiler.rb b/config/initializers/mini_profiler.rb index 5e17133c2..189067e2e 100644 --- a/config/initializers/mini_profiler.rb +++ b/config/initializers/mini_profiler.rb @@ -1,7 +1,7 @@ # If Mini Profiler is included via gem 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 Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|