Check for development rather than production to make it work on staging

This commit is contained in:
Piotr Sarnacki 2013-09-20 13:59:43 +02:00
parent 0681e54cf1
commit cbb99afe89

View File

@ -80,7 +80,7 @@ module Travis::Api
[ 420, {}, ['Enhance Your Calm']] [ 420, {}, ['Enhance Your Calm']]
end 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 Raven::Rack if Endpoint.production?
use Rack::Protection::PathTraversal use Rack::Protection::PathTraversal
use Rack::SSL if Endpoint.production? use Rack::SSL if Endpoint.production?