mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Add bullet for catching n+1
This commit is contained in:
parent
3f55de928f
commit
59ce8128da
3 changed files with 17 additions and 0 deletions
3
Gemfile
3
Gemfile
|
|
@ -95,6 +95,9 @@ group :development do
|
|||
# Preview emails in the browser [https://github.com/ryanb/letter_opener]
|
||||
gem "letter_opener"
|
||||
gem "letter_opener_web", "~> 3.0"
|
||||
|
||||
# Bullet [https://github.com/flyerhzm/bullet]
|
||||
gem "bullet"
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
|
|
|||
|
|
@ -108,6 +108,9 @@ GEM
|
|||
brakeman (7.0.0)
|
||||
racc
|
||||
builder (3.3.0)
|
||||
bullet (8.0.2)
|
||||
activesupport (>= 3.0.0)
|
||||
uniform_notifier (~> 1.11)
|
||||
capybara (3.40.0)
|
||||
addressable
|
||||
matrix
|
||||
|
|
@ -451,6 +454,7 @@ GEM
|
|||
unicode-display_width (3.1.4)
|
||||
unicode-emoji (~> 4.0, >= 4.0.4)
|
||||
unicode-emoji (4.0.4)
|
||||
uniform_notifier (1.16.0)
|
||||
uri (1.0.3)
|
||||
useragent (0.16.11)
|
||||
view_component (3.21.0)
|
||||
|
|
@ -488,6 +492,7 @@ DEPENDENCIES
|
|||
avo-record_link_field (~> 0.0.2)
|
||||
bootsnap
|
||||
brakeman
|
||||
bullet
|
||||
capybara
|
||||
debug
|
||||
dotenv-rails
|
||||
|
|
|
|||
|
|
@ -1,6 +1,15 @@
|
|||
require "active_support/core_ext/integer/time"
|
||||
|
||||
Rails.application.configure do
|
||||
config.after_initialize do
|
||||
Bullet.enable = true
|
||||
Bullet.alert = true
|
||||
Bullet.bullet_logger = true
|
||||
Bullet.console = true
|
||||
Bullet.rails_logger = true
|
||||
Bullet.add_footer = true
|
||||
end
|
||||
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
# Make code changes take effect immediately without server restart.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue