lib/wat_catcher/railtie.rb in wat_catcher-0.10.1 vs lib/wat_catcher/railtie.rb in wat_catcher-0.10.2

- old
+ new

@@ -9,10 +9,10 @@ config.project_root = ::Rails.root.to_s end # Auto-load configuration settings from config/bugsnag.yml if it exists config_file = ::Rails.root.join("config", "wat_catcher.yml") - config = YAML.load_file(config_file) if File.exists?(config_file) + config = YAML.load(ERB.new(File.read(config_file)).result) if File.exists?(config_file) WatCatcher.configure(config[::Rails.env] ? config[::Rails.env] : config) if config end initializer "wat_catcher.view_helpers" do |app| ActionView::Base.send :include, ::WatCatcher::Helper \ No newline at end of file