From bd6bdb1ffefc594037b77e6aa70e7931d38f980c Mon Sep 17 00:00:00 2001 From: the38th Date: Mon, 14 Jun 2021 02:27:01 -0700 Subject: [PATCH 1/2] bullet installed --- Gemfile | 1 + Gemfile.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index c9d3d11..4322781 100644 --- a/Gemfile +++ b/Gemfile @@ -37,6 +37,7 @@ group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '~> 3.2' + gem 'bullet' end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index fae6f04..1dedcf4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -78,6 +78,9 @@ GEM bootsnap (1.4.8) msgpack (~> 1.0) builder (3.2.4) + bullet (6.1.4) + activesupport (>= 3.0.0) + uniform_notifier (~> 1.11) byebug (11.1.3) capybara (3.33.0) addressable @@ -251,6 +254,7 @@ GEM tzinfo (1.2.7) thread_safe (~> 0.1) unicode-display_width (2.0.0) + uniform_notifier (1.14.2) web-console (4.0.4) actionview (>= 6.0.0) activemodel (>= 6.0.0) @@ -280,6 +284,7 @@ DEPENDENCIES active_model_serializers bcrypt (~> 3.1.7) bootsnap (>= 1.4.2) + bullet byebug capybara (>= 2.15) factory_bot_rails From 18c930fd0dfacd2d4a3034ecfbbe47f92f29758f Mon Sep 17 00:00:00 2001 From: the38th Date: Mon, 14 Jun 2021 02:41:49 -0700 Subject: [PATCH 2/2] added bullet configures --- config/environments/development.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 66df51f..7f3864f 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,12 @@ Rails.application.configure do + config.after_initialize do + Bullet.enable = true + Bullet.alert = true + Bullet.bullet_logger = true + Bullet.console = true + Bullet.rails_logger = true + Bullet.add_footer = true + end # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on