Skip to content

Commit

Permalink
Explicit toString conversion in pathTo helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Dec 23, 2012
1 parent ad9c84d commit bf75032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railway_routes.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Map.prototype.addPath = function (templatePath, action, helperName) {
} else { } else {
value = arg; value = arg;
} }
path = path.replace(/:\w*/, value); path = path.replace(/:\w*/, value.toString());
} }
if (arguments[paramsLength]) { if (arguments[paramsLength]) {
var query = []; var query = [];
Expand Down

0 comments on commit bf75032

Please sign in to comment.