mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Make bullet activation optional
This should speed up CI, and still makes it easy to use when needed.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user