Skip to content

Commit

Permalink
Enable Bullet in development mode (forem#5527)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymes authored and mstruve committed Jan 15, 2020
1 parent ddb54d0 commit fd6758f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,17 @@ def yarn_integrity_enabled?
logger.level = config.log_level
config.logger = ActiveSupport::TaggedLogging.new(logger)

# See <https://github.com/flyerhzm/bullet#configuration> for other config options
config.after_initialize do
Bullet.enable = false
Bullet.console = false
Bullet.enable = true

Bullet.add_footer = true
Bullet.console = true
Bullet.rails_logger = true

Bullet.add_whitelist(type: :unused_eager_loading, class_name: "ApiSecret", association: :user)
# acts-as-taggable-on has super weird eager loading problems: <https://github.com/mbleigh/acts-as-taggable-on/issues/91>
Bullet.add_whitelist(type: :n_plus_one_query, class_name: "ActsAsTaggableOn::Tagging", association: :tag)
end
end

Expand Down

0 comments on commit fd6758f

Please sign in to comment.