mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							389 B
						
					
					
				
			
		
		
	
	
							16 lines
						
					
					
						
							389 B
						
					
					
				# 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)
 | 
						|
 | 
						|
    config.enabled = true
 | 
						|
 | 
						|
    config.exception_level_filters['ActionController::RoutingError'] = 'ignore'
 | 
						|
 | 
						|
    config.environment = ENV['ROLLBAR_ENV'].presence || Rails.env
 | 
						|
  end
 | 
						|
end
 |