diff --git a/Gemfile b/Gemfile index 359eea4..687006f 100644 --- a/Gemfile +++ b/Gemfile @@ -95,6 +95,9 @@ group :development do # Preview emails in the browser [https://github.com/ryanb/letter_opener] gem "letter_opener" gem "letter_opener_web", "~> 3.0" + + # Bullet [https://github.com/flyerhzm/bullet] + gem "bullet" end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index d0ec131..1a619d1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -108,6 +108,9 @@ GEM brakeman (7.0.0) racc builder (3.3.0) + bullet (8.0.2) + activesupport (>= 3.0.0) + uniform_notifier (~> 1.11) capybara (3.40.0) addressable matrix @@ -451,6 +454,7 @@ GEM unicode-display_width (3.1.4) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) + uniform_notifier (1.16.0) uri (1.0.3) useragent (0.16.11) view_component (3.21.0) @@ -488,6 +492,7 @@ DEPENDENCIES avo-record_link_field (~> 0.0.2) bootsnap brakeman + bullet capybara debug dotenv-rails diff --git a/config/environments/development.rb b/config/environments/development.rb index 8994c9c..d75ceee 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,6 +1,15 @@ require "active_support/core_ext/integer/time" 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. # Make code changes take effect immediately without server restart.