From cbb99afe89c571f4c7e6fef43421d2abb6554f7c Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Fri, 20 Sep 2013 13:59:43 +0200 Subject: [PATCH] Check for development rather than production to make it work on staging --- lib/travis/api/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 023ff2c7..86301e08 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -80,7 +80,7 @@ module Travis::Api [ 420, {}, ['Enhance Your Calm']] end - use Travis::Api::App::Cors unless Endpoint.production? + use Travis::Api::App::Cors if Travis.env == 'development' use Raven::Rack if Endpoint.production? use Rack::Protection::PathTraversal use Rack::SSL if Endpoint.production?