This website requires JavaScript.
Explore
Help
Register
Sign in
DGNum
/
demarches-normaliennes
Watch
15
Star
1
Fork
You've already forked demarches-normaliennes
0
Code
Issues
1
Pull requests
Projects
Releases
Packages
Wiki
Activity
5f6f19871f
demarches-normaliennes
/
config
/
initializers
/
rack_mini_profiler.rb
4 lines
86 B
Ruby
Raw
Normal View
History
Unescape
Escape
Remove rack_mini_profiler from prod as it could show env var and force us to allow unsafe_eval and script in csp
2020-10-30 17:07:06 +01:00
if
Rails
.
env
.
development?
activate rack_mini_profiler in dev and display query count
2021-05-04 11:51:35 +02:00
Rack
::
MiniProfiler
.
config
.
show_total_sql_count
=
true
Remove rack_mini_profiler from prod as it could show env var and force us to allow unsafe_eval and script in csp
2020-10-30 17:07:06 +01:00
end
Reference in a new issue
Copy permalink