Skip to content

Commit

Permalink
Added plugin logic to Instance
Browse files Browse the repository at this point in the history
 - Allows custom validation behaviour
  • Loading branch information
notheotherben committed Dec 11, 2013
1 parent db0be5d commit 872d15e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ function Instance(model, doc, isNew) {

"use strict";
var $ = this;

validate.extra = model.extraValidators;

if(!isNew) model.fromSource(doc);

Expand Down

0 comments on commit 872d15e

Please sign in to comment.