关闭rack-mini-profiler

This commit is contained in:
“xxq250” 2022-07-26 16:32:53 +08:00
parent 99d9e13edc
commit 5be93d5de8
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ class ApplicationController < ActionController::Base
# TODO # TODO
# check sql query time # check sql query time
before_action do before_action do
if request.subdomain === 'testforgeplus' || request.subdomain === "profiler" # if request.subdomain === 'testforgeplus' || request.subdomain === "profiler"
Rack::MiniProfiler.authorize_request # Rack::MiniProfiler.authorize_request
end # end
end end
DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z) DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z)