From 5b3732e43aebd7ee18003c1d73af645742f84b21 Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Fri, 12 Feb 2016 02:37:37 +0100 Subject: [PATCH] allow to pass schema opts --- mr-server-model.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mr-server-model.js b/mr-server-model.js index fd14660..660a6ba 100644 --- a/mr-server-model.js +++ b/mr-server-model.js @@ -35,7 +35,7 @@ module.exports = function moonridgeModel (name, schema, opts) { } // mongoose schema - var mgSchema = new mongoose.Schema(schema) + var mgSchema = new mongoose.Schema(schema, opts.schemaOpts) if (opts.statics) { _.extend(mgSchema.statics, opts.statics) diff --git a/package.json b/package.json index d36bf74..71d1ae8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moonridge", - "version": "0.9.24", + "version": "0.9.25", "main": "moonridge.js", "author": "Capaj ", "description": "Isomorphic library, which allows you to use Mongoose.js models via socket.io-rpc doing regular queries and liveQueries",