jnunemaker/mongomapper — pull request #384 by RobertLowe (2012-02-09 03:37:36+00:00)
Title: Fix: Uninitialized Class Variable @@database_name

Allows usage of ternary (conditional) assignment for MongoMapper.database

EG:

`MongoMapper.database ||= "test"`

---

IMO, public API methods shouldn't raise exceptions unless they're "exceptional"

Fixes: #136