Permalink
Browse files

Merge pull request #503 from nverba/patch-1

Update mini_profiler.rb
  • Loading branch information...
2 parents 204759a + 9a1fb90 commit c125f5d8f547751bff8e4304abf784ee45e8b412 @SamSaffron SamSaffron committed Mar 20, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 config/initializers/mini_profiler.rb
@@ -1,8 +1,7 @@
# If Mini Profiler is included via gem
if defined?(Rack::MiniProfiler)
- Rack::MiniProfiler.config.storage_options = YAML.load(ERB.new(File.new("#{Rails.root}/config/redis.yml").read).result)[Rails.env].symbolize_keys
- Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore
+ 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|

0 comments on commit c125f5d

Please sign in to comment.