Skip to content

Commit

Permalink
Re-add Bullet gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Dec 21, 2024
1 parent 5df629a commit 1ec11ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -511,6 +515,7 @@ PLATFORMS

DEPENDENCIES
actionpack-action_caching
bullet
capybara
capybara-email
capybara-screenshot
Expand Down
7 changes: 7 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1ec11ff

Please sign in to comment.