add ActiveRecord::ConnectionAdapters::ConnectionManagement
This commit is contained in:
parent
5714fcf36d
commit
44afb75630
|
@ -53,6 +53,7 @@ class Travis::Api::App
|
||||||
@app = Rack::Builder.app do
|
@app = Rack::Builder.app do
|
||||||
use Rack::Protection::PathTraversal
|
use Rack::Protection::PathTraversal
|
||||||
use Rack::SSL if Endpoint.production?
|
use Rack::SSL if Endpoint.production?
|
||||||
|
use ActiveRecord::ConnectionAdapters::ConnectionManagement
|
||||||
Middleware.subclasses.each { |m| use(m) }
|
Middleware.subclasses.each { |m| use(m) }
|
||||||
endpoints = Endpoint.subclasses
|
endpoints = Endpoint.subclasses
|
||||||
endpoints -= [Endpoint::Home] if options[:disable_root_endpoint]
|
endpoints -= [Endpoint::Home] if options[:disable_root_endpoint]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user