Browse files

Explicit toString conversion in pathTo helpers

  • Loading branch information...
1 parent ad9c84d commit bf7503281d322a8f68bee5161614b597a01a4f5b @1602 committed Dec 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/railway_routes.js
View
2 lib/railway_routes.js
@@ -180,7 +180,7 @@ Map.prototype.addPath = function (templatePath, action, helperName) {
} else {
value = arg;
}
- path = path.replace(/:\w*/, value);
+ path = path.replace(/:\w*/, value.toString());
}
if (arguments[paramsLength]) {
var query = [];

0 comments on commit bf75032

Please sign in to comment.