Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug: format was not appended on some routes.

  • Loading branch information...
commit 693c35af45cceaccd27ebb9a280424890deebcca 1 parent 0bf02be
@olalonde olalonde authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/railway_routes.js
View
4 lib/railway_routes.js
@@ -264,7 +264,7 @@ Map.prototype.resources = function (name, params, actions) {
var path = route[1];
// append format
- if (params.appendFormat) {
+ if (params.appendFormat !== false) {
if (path == '/') {
path = '.:format?';
} else {
@@ -287,7 +287,7 @@ Map.prototype.resources = function (name, params, actions) {
// params.path setting allows to override common path component
var effectivePath = (params.path || name) + path;
-
+console.log(effectivePath);
var controller = params.controller || name;
// and call map.{get|post|update|delete}
Please sign in to comment.
Something went wrong with that request. Please try again.