Files
openfoodnetwork/config/initializers/bullet.rb
Matt-Yorkley f684b5b234 Make bullet activation optional
This should speed up CI, and still makes it easy to use when needed.
2021-03-25 15:36:51 +00:00

10 lines
233 B
Ruby

# frozen_string_literal: true
if defined?(Bullet) && ENV.fetch("ENABLE_BULLET", false)
Rails.application.config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.rails_logger = true
end
end