lib/frisky-mongo/config.rb in frisky_mongo-0.7.2 vs lib/frisky-mongo/config.rb in frisky_mongo-0.7.7

- old
+ new

@@ -14,7 +14,7 @@ MongoMapper.connection = @@mongo MongoMapper.database = @@mongo_database end end - def mongo; @@mongo; end + def self.mongo; @@mongo[@@mongo_database]; end end \ No newline at end of file