Enable miniprofiler in development automatically.

This commit is contained in:
Guo Xiang Tan 2016-11-29 10:59:10 +08:00
parent 0631a84ca0
commit d95fbd89d0
1 changed files with 1 additions and 1 deletions

View File

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