Add Bullet gem to detect N+1 queries.

This commit is contained in:
Guo Xiang Tan
2016-06-28 09:29:42 +08:00
parent fc81209564
commit 9ed79d8ecd
3 changed files with 12 additions and 0 deletions

View File

@ -52,4 +52,10 @@ Discourse::Application.configure do
config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
end
config.after_initialize do
Bullet.enable = true
Bullet.alert = true
Bullet.console = true
Bullet.rails_logger = true
end
end