Skip to content

Commit

Permalink
Let .toJSON() method be called implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
scttnlsn committed Dec 12, 2012
1 parent 6e7a5b0 commit 2047f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json.js
Expand Up @@ -6,7 +6,7 @@ exports.show = function(options) {
if (options.status === 204) { if (options.status === 204) {
res.send(204); res.send(204);
} else { } else {
res.json(req.instance.toObject(), options.status); res.json(req.instance, options.status);
} }
}; };
}; };
Expand Down

0 comments on commit 2047f3b

Please sign in to comment.