bmizerany/sinatra-activerecord — pull request #10 by nbudin (2012-04-18 15:41:42+00:00)
Title: Set up an after hook to clear active connections after each request

Recent versions of ActiveRecord don't automatically release connections back into the pool. Without this patch, the user has to manually set up this hook if they don't want every nth request to hang for 5 seconds (where n is the number of connections in the pool).