From d61109388cb12da7593c4c7ae99a9de35e683f4c Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 6 Sep 2017 11:18:46 +0800 Subject: [PATCH] Activate mini-profiler when in profiling env. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 22c06313627..4db548de6a8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -520,7 +520,7 @@ class ApplicationController < ActionController::Base end def mini_profiler_enabled? - defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development?) + defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development? || Rails.env.profile?) end def authorize_mini_profiler