Fix: Uninitialized Class Variable @@database_name #384

merged 1 commit into from Mar 30, 2012


None yet
2 participants

RobertLowe commented Feb 9, 2012

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


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