Revert "Activate mini-profiler when in profiling env."

This reverts commit d61109388c.
This commit is contained in:
Guo Xiang Tan 2017-09-06 11:26:03 +08:00
parent d61109388c
commit 8463b676df
1 changed files with 1 additions and 1 deletions

View File

@ -520,7 +520,7 @@ class ApplicationController < ActionController::Base
end end
def mini_profiler_enabled? def mini_profiler_enabled?
defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development? || Rails.env.profile?) defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development?)
end end
def authorize_mini_profiler def authorize_mini_profiler