Skip to content

Commit

Permalink
Fixed instance schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 11, 2013
1 parent 82368ee commit 4d69c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4d69c29

Please sign in to comment.