Skip to content

Commit

Permalink
[fix] validation should attach schema to resource instances
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Oct 27, 2011
1 parent 34cf303 commit 8da8cef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resourceful/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var Resource = exports.Resource = function () {
Object.defineProperty(this, 'isNewRecord', {
value: true, writable: true
});
this.schema = this.constructor.schema;
};

//
Expand Down

0 comments on commit 8da8cef

Please sign in to comment.