Files
Reem-Notas/config/initializers/rack_mini_profiler.rb

11 lines
500 B
Ruby

# Reforço de segurança do rack-mini-profiler.
#
# A gem agora é carregada com `require: false` no Gemfile, então normalmente
# `Rack::MiniProfiler` nem existe (nenhum cookie __profilin, nenhuma rota
# /mini-profiler-resources). Se alguém a exigir manualmente para investigar
# performance, este initializer garante que o profiler fique DESLIGADO por
# padrão — habilite conscientemente durante a investigação.
if defined?(Rack::MiniProfiler)
Rack::MiniProfiler.config.enabled = false
end