Permalink
Browse files

Let .toJSON() method be called implicitly

  • Loading branch information...
1 parent 6e7a5b0 commit 2047f3b7cc72e1399ba32908c00cc9f6078f8cd8 @scttnlsn committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/json.js
View
@@ -6,7 +6,7 @@ exports.show = function(options) {
if (options.status === 204) {
res.send(204);
} else {
- res.json(req.instance.toObject(), options.status);
+ res.json(req.instance, options.status);
}
};
};

0 comments on commit 2047f3b

Please sign in to comment.