Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 67c438434b7dbc8bdf7ac6db65947dfa45ba0bc7 1 parent 6804c99
Sam SamSaffron authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 config/initializers/mini_profiler.rb
5 config/initializers/mini_profiler.rb
View
@@ -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/
Please sign in to comment.
Something went wrong with that request. Please try again.