mini profiler只在dev下生效

This commit is contained in:
guange 2016-12-09 09:40:39 +08:00
parent dcfb9d589e
commit 9b155c9573
1 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,4 @@
Rack::MiniProfiler.config.position = 'right' if Rails.env.development?
Rack::MiniProfiler.config.start_hidden = true Rack::MiniProfiler.config.position = 'right'
Rack::MiniProfiler.config.start_hidden = true
end