From 74517944de496e0525d5ff3e84fbbe23a76a0353 Mon Sep 17 00:00:00 2001 From: "Steven R. Baker" Date: Wed, 15 May 2019 20:44:49 +0200 Subject: [PATCH] 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)