mongoid/mongoid — pull request #2057 by i0rek (2012-06-02 14:07:02+00:00)
Title: Update configuration to add hosts and database in the uri case.

Fixes https://github.com/mongoid/moped/issues/10.
Thanks to @mikezter.

The Problem was, that the configuration contained only the uri and not the database and hosts. That worked initially, but when calling #mongo_session(https://github.com/i0rek/mongoid/blob/uri_fix/lib/mongoid/sessions.rb) looking up the database name doesn't work because its not there.