Skip to content

Commit

Permalink
added custom collection name to mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
jspies committed May 18, 2012
1 parent 3179c05 commit 75f9373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/mongoose.js
Expand Up @@ -48,7 +48,7 @@ MongooseAdapter.prototype.define = function (descr) {
if (props[key].name === 'Object') props[key] = mongoose.Schema.Types.Mixed;
});
var schema = new mongoose.Schema(props);
this._models[descr.model.modelName] = mongoose.model(descr.model.modelName, schema);
this._models[descr.model.modelName] = mongoose.model(descr.model.modelName, schema, descr.settings.table || null);
this.cache[descr.model.modelName] = {};
};

Expand Down

0 comments on commit 75f9373

Please sign in to comment.