From 33ec5886cc362e969cd84bdc42b67770260a1437 Mon Sep 17 00:00:00 2001 From: "Steven R. Baker" Date: Mon, 13 May 2019 21:50:49 +0200 Subject: [PATCH 1/2] Move the profiler to the bottom left. It's far less in the way here. It's also hide-able with Alt-P (if you don't have a textbox focused.) --- config/initializers/rack-mini-profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/rack-mini-profiler.rb b/config/initializers/rack-mini-profiler.rb index 230fa550..1063d951 100644 --- a/config/initializers/rack-mini-profiler.rb +++ b/config/initializers/rack-mini-profiler.rb @@ -1,2 +1,2 @@ # Have Mini Profiler show up on the right -Rack::MiniProfiler.config.position = 'right' if defined?(Rack::MiniProfiler) \ No newline at end of file +Rack::MiniProfiler.config.position = 'bottom-left' From 74517944de496e0525d5ff3e84fbbe23a76a0353 Mon Sep 17 00:00:00 2001 From: "Steven R. Baker" Date: Wed, 15 May 2019 20:44:49 +0200 Subject: [PATCH 2/2] Rack::MiniProfile doesn't exist in test environment. --- config/initializers/rack-mini-profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/rack-mini-profiler.rb b/config/initializers/rack-mini-profiler.rb index 1063d951..9103b7e8 100644 --- a/config/initializers/rack-mini-profiler.rb +++ b/config/initializers/rack-mini-profiler.rb @@ -1,2 +1,2 @@ # Have Mini Profiler show up on the right -Rack::MiniProfiler.config.position = 'bottom-left' +Rack::MiniProfiler.config.position = 'bottom-left' if defined?(Rack::MiniProfiler)