Skip to content

Commit

Permalink
Add bullet gem (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingRockStorm authored Oct 3, 2023
1 parent fee9ab0 commit 1aed872
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ end
group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem 'web-console'
gem 'bullet'

# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ GEM
kaminari (>= 0.13)
rails (>= 3.1)
builder (3.2.4)
bullet (7.0.7)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
capybara (3.39.2)
addressable
matrix
Expand Down Expand Up @@ -297,6 +300,7 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.4.2)
uniform_notifier (1.16.0)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.0)
Expand All @@ -322,6 +326,7 @@ PLATFORMS
DEPENDENCIES
bootsnap
bootstrap5-kaminari-views
bullet
capybara
cssbundling-rails
debug
Expand Down
10 changes: 10 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@
# Suppress logger output for asset requests.
config.assets.quiet = true

# config for bullet
config.after_initialize do
Bullet.enable = true
Bullet.sentry = true
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
Bullet.rails_logger = true
end

# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true

Expand Down

0 comments on commit 1aed872

Please sign in to comment.