Make bullet activation optional

This should speed up CI, and still makes it easy to use when needed.
This commit is contained in:
Matt-Yorkley
2021-03-25 15:36:51 +00:00
parent 0121c18823
commit f684b5b234

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