From 11428ef9d67da9043964b90dbe4ad2d3f48a280f Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 12 Nov 2013 16:47:01 +1100 Subject: [PATCH] filter out android from mini profiler --- config/initializers/06-mini_profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/06-mini_profiler.rb b/config/initializers/06-mini_profiler.rb index 35765a14440..8c5f385f7c5 100644 --- a/config/initializers/06-mini_profiler.rb +++ b/config/initializers/06-mini_profiler.rb @@ -16,7 +16,7 @@ if defined?(Rack::MiniProfiler) # 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| - (env['HTTP_USER_AGENT'] !~ /iPad|iPhone|Nexus 7/) && + (env['HTTP_USER_AGENT'] !~ /iPad|iPhone|Nexus 7|Android/) && (env['PATH_INFO'] !~ /^\/message-bus/) && (env['PATH_INFO'] !~ /topics\/timings/) && (env['PATH_INFO'] !~ /assets/) &&