diff --git a/Gemfile b/Gemfile index 3ea6fe3..9b2df6c 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/Gemfile.lock b/Gemfile.lock index 002b297..ee055b2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 @@ -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) @@ -322,6 +326,7 @@ PLATFORMS DEPENDENCIES bootsnap bootstrap5-kaminari-views + bullet capybara cssbundling-rails debug diff --git a/config/environments/development.rb b/config/environments/development.rb index 0cb3bc4..12688df 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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