Enable miniprofiler in development automatically.
This commit is contained in:
parent
0631a84ca0
commit
d95fbd89d0
|
@ -465,7 +465,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def mini_profiler_enabled?
|
def mini_profiler_enabled?
|
||||||
defined?(Rack::MiniProfiler) && guardian.is_developer?
|
defined?(Rack::MiniProfiler) && (guardian.is_developer? || Rails.env.development?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def authorize_mini_profiler
|
def authorize_mini_profiler
|
||||||
|
|
Loading…
Reference in New Issue