clarify why block all mobile/tablet for miniprofiler

This commit is contained in:
Jeff Atwood 2016-03-15 16:54:40 -07:00
parent d052f1746c
commit 40d6f062f7
1 changed files with 2 additions and 1 deletions

View File

@ -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']