ensure rollbar required with sidekiq

This commit is contained in:
DocuSeal committed 2023-09-30 11:33:51 +03:00
1 parent 784665b549
commit 7f97bfb3bd
1 file changed
+2
+2
View File
@@ -1,5 +1,7 @@
# frozen_string_literal: true
require 'rollbar' if ENV.key?('ROLLBAR_ACCESS_TOKEN')
if defined?(Rollbar)
Rollbar.configure do |config|
config.access_token = ENV.fetch('ROLLBAR_ACCESS_TOKEN', nil)