From 763d8932312507ffdbd90b324746ebf58ec641f6 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Fri, 21 Nov 2014 19:18:27 -0800 Subject: [PATCH] Fix New Relic --- stargaterando.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stargaterando.rb b/stargaterando.rb index b929cad..7e08c98 100644 --- a/stargaterando.rb +++ b/stargaterando.rb @@ -7,6 +7,11 @@ Camping.goes :StargateRando # Data was moved out to stargaterando-data.rb to keep this file clean require './stargaterando-data' +# This sets up New Relic monitoring +def StargateRando.create + NewRelic::Agent.manual_start +end + # This holds our (currently there's only one) controllers. module StargateRando::Controllers class Index < R '/' @@ -82,8 +87,4 @@ module StargateRando::Views end end -end - -module StargateRando - include NewRelic::Agent::Instrumentation::Camping end \ No newline at end of file