Permalink
Browse files

Use singular helper name

  • Loading branch information...
1 parent 80423e2 commit b0418234405d1196b81daa98c3702c413ac3fd09 @1602 committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/railway_routes.js
@@ -77,7 +77,7 @@ Map.prototype.urlHelperName = function (path, action) {
}
}
if (nextToken[0] == ':' || nextToken == 'new.:format?') {
- token = singularize(token);
+ token = singularize(token) || token;
}
helperName.push(token);
});

0 comments on commit b041823

Please sign in to comment.