Permalink
Browse files

[fix] validation should attach schema to resource instances

  • Loading branch information...
1 parent 34cf303 commit 8da8cef8f8d4a5814337f3ba50c9eb5f4f74636a @bmeck bmeck committed Oct 27, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/resourceful/resource.js
@@ -12,6 +12,7 @@ var Resource = exports.Resource = function () {
Object.defineProperty(this, 'isNewRecord', {
value: true, writable: true
});
+ this.schema = this.constructor.schema;
};
//

0 comments on commit 8da8cef

Please sign in to comment.