From a2018bc0f1c7ed626a5d833ad0648670e82e1055 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Sat, 19 Jan 2013 23:08:47 +0100 Subject: [PATCH] Explicitly load constants on Travis::Api For some reason not loading it broke new relic notifications --- config.ru | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.ru b/config.ru index 12cb49d8..a570b9e2 100644 --- a/config.ru +++ b/config.ru @@ -9,6 +9,8 @@ require 'core_ext/module/load_constants' models = Travis::Model.constants.map(&:to_s) only = [/^(ActiveRecord|ActiveModel|Travis|GH|#{models.join('|')})/] -Travis.load_constants! :only => only, :skip => ['Travis::Memory', 'GH::ResponseWrapper'], :debug => false +[Travis::Api, Travis, GH].each do |target| + target.load_constants! :only => only, :skip => ['Travis::Memory', 'GH::ResponseWrapper'], :debug => false +end run Travis::Api::App.new