Merge pull request #7213 from Matt-Yorkley/optional-bullet

Make bullet activation optional
This commit is contained in:
Andy Brett
2021-04-03 13:48:21 -07:00
committed by GitHub

View File

@@ -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