Skip to content

Commit

Permalink
Merge pull request #7213 from Matt-Yorkley/optional-bullet
Browse files Browse the repository at this point in the history
Make bullet activation optional
  • Loading branch information
andrewpbrett authored Apr 3, 2021
2 parents b584659 + f684b5b commit 2ee1583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/bullet.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

if defined?(Bullet)
if defined?(Bullet) && ENV.fetch("ENABLE_BULLET", false)
Rails.application.config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Expand Down

0 comments on commit 2ee1583

Please sign in to comment.