Install and configure bullet
This commit is contained in:
parent
20c57c5a7c
commit
058b171915
1
Gemfile
1
Gemfile
|
@ -78,6 +78,7 @@ gem "puma"
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem "better_errors"
|
gem "better_errors"
|
||||||
gem "brakeman"
|
gem "brakeman"
|
||||||
|
gem "bullet"
|
||||||
gem "capybara"
|
gem "capybara"
|
||||||
gem "database_cleaner"
|
gem "database_cleaner"
|
||||||
gem "factory_bot_rails", require: false
|
gem "factory_bot_rails", require: false
|
||||||
|
|
|
@ -100,6 +100,9 @@ GEM
|
||||||
brakeman (5.2.0)
|
brakeman (5.2.0)
|
||||||
buftok (0.2.0)
|
buftok (0.2.0)
|
||||||
builder (3.2.4)
|
builder (3.2.4)
|
||||||
|
bullet (7.0.1)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
uniform_notifier (~> 1.11)
|
||||||
byebug (11.1.3)
|
byebug (11.1.3)
|
||||||
capybara (3.36.0)
|
capybara (3.36.0)
|
||||||
addressable
|
addressable
|
||||||
|
@ -587,6 +590,7 @@ GEM
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.8)
|
unf_ext (0.0.8)
|
||||||
unicode-display_width (2.1.0)
|
unicode-display_width (2.1.0)
|
||||||
|
uniform_notifier (1.14.2)
|
||||||
warden (1.2.9)
|
warden (1.2.9)
|
||||||
rack (>= 2.0.9)
|
rack (>= 2.0.9)
|
||||||
web-console (4.2.0)
|
web-console (4.2.0)
|
||||||
|
@ -616,6 +620,7 @@ DEPENDENCIES
|
||||||
binding_of_caller
|
binding_of_caller
|
||||||
bootstrap_form
|
bootstrap_form
|
||||||
brakeman
|
brakeman
|
||||||
|
bullet
|
||||||
byebug
|
byebug
|
||||||
capybara
|
capybara
|
||||||
carrierwave (~> 2.0)
|
carrierwave (~> 2.0)
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
Rails.application.configure do
|
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.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
# In the development environment your application's code is reloaded on
|
# In the development environment your application's code is reloaded on
|
||||||
|
|
Loading…
Reference in New Issue