From 5d9398be1631e53c55a2e7617a26e82ec3dce96c Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 19 Oct 2015 19:44:13 -0400 Subject: [PATCH] added bullets to analyze db queries --- Gemfile | 1 + config/environments/development.rb | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Gemfile b/Gemfile index c5893f1..4aaa915 100644 --- a/Gemfile +++ b/Gemfile @@ -53,4 +53,5 @@ gem 'spring', :group => :development gem 'rb-readline' group :development do gem 'puma' + gem 'bullet' end diff --git a/config/environments/development.rb b/config/environments/development.rb index c752652..0e58bca 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -26,4 +26,11 @@ Wrestling::Application.configure do # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true + + config.after_initialize do + Bullet.enable = true + Bullet.alert = true + Bullet.console = true + Bullet.bullet_logger = true + end end