Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix: Uninitialized Class Variable @@database_name #384

Merged
merged 1 commit into from Mar 30, 2012

Conversation

Projects
None yet
2 participants
Contributor

RobertLowe commented Feb 9, 2012

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

Properly initializes connection classes variables and doesn't raise w…
…hen using ternary (conditional) assignment for MongoMapper.database

bkeepers added a commit that referenced this pull request Mar 30, 2012

Merge pull request #384 from RobertLowe/master
Fix: Uninitialized Class Variable @@database_name

@bkeepers bkeepers merged commit 4b96535 into mongomapper:master Mar 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment