Sha256: 2388cd3e931203f3f79153c7383b730334fbb0fa007c7def45727378229ef29d
Contents?: true
Size: 878 Bytes
Versions: 11
Compression:
Stored size: 878 Bytes
Contents
# called after the environment is setup and the basic dependencies are loaded # but before the models are loaded. # # Here you want to load your dependencies and maybe set your # datastore. ############### AIRBRAKE ############### airbrake_config_file = File.join(WDSinatra::AppLoader.root_path, 'config', 'airbrake.yml') if File.exist?(airbrake_config_file) airbrake_config = YAML.load_file(airbrake_config_file)[RACK_ENV] if airbrake_config && airbrake_config['enabled'] require 'airbrake' Airbrake.configure do |config| config.api_key = airbrake_config['api_key'] (airbrake_config['params_filters'] - config.params_filters).each do |param| config.params_filters << param end config.environment_name = RACK_ENV config.host = airbrake_config['host'] if airbrake_config['host'] config.logger = LOGGER end end end
Version data entries
11 entries across 11 versions & 1 rubygems