lib/shogun/server.rb in shogun-2.1.0 vs lib/shogun/server.rb in shogun-2.1.1

- old
+ new

@@ -8,17 +8,17 @@ @rack.use(Rack::Protection::EscapedParams) @rack.use(Rack::Protection::XSSHeader) @rack.use(Rack::Protection::FrameOptions) @rack.use(Rack::Protection::PathTraversal) @rack.use(Rack::Protection::IPSpoofing) + @rack.use(ActiveRecord::ConnectionAdapters::ConnectionManagement) + @rack.use(ActiveRecord::QueryCache) @rack.use(Rack::Chunker) @rack.use(Rack::AcceptSetter, accept_types) @rack.use(Rack::ContentLengthSetter) @rack.use(Rack::AuthenticationBearer, &bearer) @rack.use(Rack::BodyDeserializer, deserialization_map) @rack.use(Rack::BodySerializer, serialization_map, default_serializer) - @rack.use(ActiveRecord::ConnectionAdapters::ConnectionManagement) - @rack.use(ActiveRecord::QueryCache) @rack.use(Rack::Cors, &cors) @rack.run(Shogun::Dispatch.new(logger: @logger, &endpoints)) end private def endpoints