From 44afb7563076801f65b368d6fb5293b1a49064b2 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 10 Aug 2012 00:28:49 +0200 Subject: [PATCH] add ActiveRecord::ConnectionAdapters::ConnectionManagement --- lib/travis/api/app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 18fffe26..f6820062 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -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]