From 40d6f062f7de880f65a22d0f49b03d980ce8c091 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Tue, 15 Mar 2016 16:54:40 -0700 Subject: [PATCH] clarify why block all mobile/tablet for miniprofiler --- config/initializers/006-mini_profiler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rb index b7f42aa02..9ef0c9ec9 100644 --- a/config/initializers/006-mini_profiler.rb +++ b/config/initializers/006-mini_profiler.rb @@ -42,7 +42,8 @@ if defined?(Rack::MiniProfiler) /^\/favicon\/proxied/ ] - # For our app, let's just show mini profiler always, polling is chatty so nuke that + # we DO NOT WANT mini-profiler loading on anything but real desktops and laptops + # so let's rule out all handheld, tablet, and mobile devices Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env| path = env['PATH_INFO']