mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
added bullet for finding database optimizations
This commit is contained in:
parent
825e4bc5c1
commit
7c748884f3
4 changed files with 24 additions and 0 deletions
|
@ -36,4 +36,11 @@ Rails.application.configure do
|
|||
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
||||
# for finding database optimization
|
||||
config.after_initialize do
|
||||
Bullet.enable = true
|
||||
Bullet.bullet_logger = true
|
||||
Bullet.raise = true # raise an error if n+1 query occurs
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue