Skip to content

Commit

Permalink
[fix] Make sure to set restful property on req for Resource.get
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Aug 27, 2012
1 parent f02bd1c commit 2b50f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/restful/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ controller.create = function (req, res, resource, optionsRef, respond) {

controller.get = function (req, res, resource, optionsRef, respond) {
req.restful = {};

req.restful.action = "show";
req.restful.resource = resource;
var options = utile.clone(optionsRef);
if (options._id === "new") {
req.restful.action = "create";
Expand Down

0 comments on commit 2b50f6f

Please sign in to comment.