Module: Gitlab::Bullet

Extended by:
Bullet
Included in:
Bullet
Defined in:
lib/gitlab/bullet.rb,
lib/gitlab/bullet/exclusions.rb

Defined Under Namespace

Classes: Exclusions

Instance Method Summary collapse

Instance Method Details

#configure_bullet?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/gitlab/bullet.rb', line 12

def configure_bullet?
  defined?(::Bullet) && (enabled? || Rails.env.development?)
end

#enabled?Boolean Also known as: extra_logging_enabled?

Returns:

  • (Boolean)

7
8
9
# File 'lib/gitlab/bullet.rb', line 7

def enabled?
  Gitlab::Utils.to_boolean(ENV['ENABLE_BULLET'], default: false)
end