Install and configure bullet

This commit is contained in:
Andreas Nedbal 2022-01-29 22:15:59 +01:00 committed by Andreas Nedbal
parent 20c57c5a7c
commit 058b171915
3 changed files with 14 additions and 0 deletions

View File

@ -78,6 +78,7 @@ gem "puma"
group :development, :test do
gem "better_errors"
gem "brakeman"
gem "bullet"
gem "capybara"
gem "database_cleaner"
gem "factory_bot_rails", require: false

View File

@ -100,6 +100,9 @@ GEM
brakeman (5.2.0)
buftok (0.2.0)
builder (3.2.4)
bullet (7.0.1)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
byebug (11.1.3)
capybara (3.36.0)
addressable
@ -587,6 +590,7 @@ GEM
unf_ext
unf_ext (0.0.8)
unicode-display_width (2.1.0)
uniform_notifier (1.14.2)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.2.0)
@ -616,6 +620,7 @@ DEPENDENCIES
binding_of_caller
bootstrap_form
brakeman
bullet
byebug
capybara
carrierwave (~> 2.0)

View File

@ -1,4 +1,12 @@
Rails.application.configure do
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.console = true
Bullet.sentry = true
Bullet.rails_logger = true
end
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on