mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:53:38 +08:00
Activate mini-profiler when in profiling env.
This commit is contained in:
parent
935afe63f7
commit
d61109388c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user