Skip to content

Commit

Permalink
allow to pass schema opts
Browse files Browse the repository at this point in the history
  • Loading branch information
capaj committed Feb 12, 2016
1 parent 85900e6 commit 5b3732e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mr-server-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moonridge",
"version": "0.9.24",
"version": "0.9.25",
"main": "moonridge.js",
"author": "Capaj <capajj@gmail.com>",
"description": "Isomorphic library, which allows you to use Mongoose.js models via socket.io-rpc doing regular queries and liveQueries",
Expand Down

0 comments on commit 5b3732e

Please sign in to comment.