LearnBoost/mongoose — pull request #1005 by CasualSuperman (2012-07-11 21:50:49+00:00)
Title: Make openSet allow for an options parameter but no database parameter.

I ran into an issue where switching from `mongoose.connect` to `mongoose.connectSet` broke because I was using an options object.
This change allows you to use the same parameters for both functions (leaving out the optional database string).

Before, the code just assumed that the second parameter was the database name string, and threw an error when you passed an options object.