debian-mirror-gitlab/config/initializers/bullet.rb

19 lines
413 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2021-04-29 21:17:54 +05:30
if Gitlab::Bullet.configure_bullet?
2017-08-17 22:00:37 +05:30
Rails.application.configure do
config.after_initialize do
Bullet.enable = true
2015-10-24 18:46:33 +05:30
2021-04-29 21:17:54 +05:30
if Gitlab::Bullet.extra_logging_enabled?
Bullet.bullet_logger = true
Bullet.console = true
end
2020-06-23 00:09:42 +05:30
2017-08-17 22:00:37 +05:30
Bullet.raise = Rails.env.test?
2021-04-29 21:17:54 +05:30
Bullet.stacktrace_excludes = Gitlab::Bullet::Exclusions.new.execute
2017-08-17 22:00:37 +05:30
end
end
2015-10-24 18:46:33 +05:30
end