mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 15:57:53 +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
|
end
|
||||||
|
|
||||||
def mini_profiler_enabled?
|
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
|
end
|
||||||
|
|
||||||
def authorize_mini_profiler
|
def authorize_mini_profiler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user