jnicklas/capybara — pull request #1047 by adammck (2013-04-10 15:02:16+00:00)
Title: Improve ActiveRecord connection-sharing advice

The current advice causes "This connection is still waiting" errors when both threads try to use the connection at the same time. I've been using this improved monkey-patch (by @mperham) for a while with no problems.

See: https://github.com/brianmario/mysql2/issues/99
And: https://gist.github.com/mperham/3049152