Permalink
Browse files

wow, this has been broken for OH so long, we need to segragate users …

…correctly so MP results work as expected
  • Loading branch information...
1 parent 6804c99 commit 67c438434b7dbc8bdf7ac6db65947dfa45ba0bc7 @SamSaffron SamSaffron committed Mar 25, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 config/initializers/mini_profiler.rb
@@ -15,6 +15,11 @@
(env['PATH_INFO'] !~ /commits-widget/)
end
+ Rack::MiniProfiler.config.user_provider = lambda do |env|
+ user = CurrentUser.lookup_from_env(env)
+ user ? user.id.to_s : Rack::Request.new(env).ip
+ end
+
Rack::MiniProfiler.config.position = 'left'
Rack::MiniProfiler.config.backtrace_ignores ||= []
Rack::MiniProfiler.config.backtrace_ignores << /lib\/rack\/message_bus.rb/

0 comments on commit 67c4384

Please sign in to comment.