From 235a9e0c271b49b7b87290cef684d84655fc8936 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Tue, 13 May 2014 11:39:27 +0100 Subject: [PATCH] Move middleware to api file --- config.ru | 1 - lib/api.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.ru b/config.ru index 7072c37..1012048 100644 --- a/config.ru +++ b/config.ru @@ -1,5 +1,4 @@ require './config/environment' require 'api' -use Honeybadger::Rack run Sinatra::Application diff --git a/lib/api.rb b/lib/api.rb index f5ba937..356d07b 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -7,6 +7,8 @@ set :root, File.expand_path('..', File.dirname(__FILE__)) configure :production do require 'newrelic_rpm' + + use Honeybadger::Rack end helpers do