diff --git a/lib/Instance.js b/lib/Instance.js index ea9def2..dd84802 100644 --- a/lib/Instance.js +++ b/lib/Instance.js @@ -35,8 +35,8 @@ function Instance(model, doc, isNew) { for(var property in doc) schema[property] = false; - for(var property in model.options.schema) - schema[property] = model.options.schema[property]; + for(var property in model.schema) + schema[property] = model.schema[property]; for(var targetProperty in schema) { (function(targetProperty) {