Permalink
Browse files

Added toJSON method to DAO object so it behaves with backbone.js

  • Loading branch information...
1 parent 751a6de commit 969f7a3550294680c2b98390701958dc453b68aa @grayt0r committed Mar 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/dao.js
View
@@ -223,6 +223,11 @@ module.exports = (function() {
DAO.prototype.setValidators = function(attribute, validators) {
this.validators[attribute] = validators
}
+
+ // RAG
+ DAO.prototype.toJSON = function() {
+ return this.values;
+ }
// private

0 comments on commit 969f7a3

Please sign in to comment.