add ActiveRecord::ConnectionAdapters::ConnectionManagement

This commit is contained in:
Konstantin Haase 2012-08-10 00:28:49 +02:00
parent 5714fcf36d
commit 44afb75630

View File

@ -53,6 +53,7 @@ class Travis::Api::App
@app = Rack::Builder.app do
use Rack::Protection::PathTraversal
use Rack::SSL if Endpoint.production?
use ActiveRecord::ConnectionAdapters::ConnectionManagement
Middleware.subclasses.each { |m| use(m) }
endpoints = Endpoint.subclasses
endpoints -= [Endpoint::Home] if options[:disable_root_endpoint]