diff --git a/Gemfile b/Gemfile index e10c21dc..726014ca 100644 --- a/Gemfile +++ b/Gemfile @@ -39,7 +39,7 @@ gem "waveform" gem "will_paginate" group :development do - # gem "bullet" TODO: Re-add when Rails 8 compatible + gem "bullet" gem "dotenv-rails" gem "rubocop-capybara" gem "rubocop-factory_bot" diff --git a/Gemfile.lock b/Gemfile.lock index d705b816..2fb7b6d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -82,6 +82,9 @@ GEM benchmark (0.4.0) bigdecimal (3.1.8) builder (3.3.0) + bullet (8.0.0) + activesupport (>= 3.0.0) + uniform_notifier (~> 1.11) capybara (3.40.0) addressable matrix @@ -490,6 +493,7 @@ GEM unicode-display_width (3.1.2) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) + uniform_notifier (1.16.0) uri (1.0.2) useragent (0.16.11) version_gem (1.1.4) @@ -511,6 +515,7 @@ PLATFORMS DEPENDENCIES actionpack-action_caching + bullet capybara capybara-email capybara-screenshot diff --git a/config/environments/development.rb b/config/environments/development.rb index cd313150..b1f34f25 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -15,4 +15,11 @@ config.consider_all_requests_local = true config.eager_load = false config.whiny_nils = true + + # https://github.com/flyerhzm/bullet + config.after_initialize do + Bullet.enable = true + Bullet.bullet_logger = true # log/bullet.log + Bullet.rails_logger = true + end end