Browse Source

关闭rack-mini-profiler

pull/313/head
“xxq250” 3 years ago
parent
commit
5be93d5de8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app/controllers/application_controller.rb

+ 3
- 3
app/controllers/application_controller.rb 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"
Rack::MiniProfiler.authorize_request
end
# if request.subdomain === 'testforgeplus' || request.subdomain === "profiler"
# Rack::MiniProfiler.authorize_request
# 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)


Loading…
Cancel
Save