Permalink
Browse files

[fix] Fix a small bug with resourceful

  • Loading branch information...
1 parent 4ab4117 commit 962e19c27a49ae522d53f52a194a9f0a339d5486 @pksunkara pksunkara committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commandful.js
View
@@ -72,7 +72,7 @@ var extendRouter = exports.extendRouter = function (router, resources, options)
}
resources.forEach(function (resource) {
- var entity = resource._resource.toLowerCase(),
+ var entity = resource.lowerResource,
param = options.param || ':id';
//
// Route for resource name itself.

0 comments on commit 962e19c

Please sign in to comment.