Skip to content

Commit

Permalink
Add bullet gem
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 19, 2024
1 parent 7f95e22 commit e0872f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -85,6 +85,7 @@ group :development do
gem 'pry-nav'
gem 'pry-remote'
gem 'rubocop'
gem 'bullet' # Add bullet gem to minimize number of queries to database.
end

group :test do
Expand Down
13 changes: 8 additions & 5 deletions config/environments/development.rb
Expand Up @@ -47,12 +47,15 @@ def filter(msg)
config.assets.debug = true
config.react.variant = :development
config.active_record.logger = nil
# Line 63-69 are for 'bullet' gem initialization.

# Bullet gem initialization.
config.after_initialize do
Bullet.enable = true
Bullet.alert = false
Bullet.bullet_logger = false
Bullet.console = false
Bullet.rails_logger = false
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
# Bullet.growl = true
Bullet.rails_logger = true
# Bullet.add_footer = true
end
end

0 comments on commit e0872f0

Please sign in to comment.