Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #11 from jfremy/patch-1

Make sure appendFormat is always
  • Loading branch information...
commit 2807e1eeb0ccd6ffd3784df50dd5e8a1626573bd 2 parents ad9c84d + b7e48d6
@1602 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/railway_routes.js
View
3  lib/railway_routes.js
@@ -227,13 +227,14 @@ Map.prototype.resources = function (name, params, actions) {
var self = this;
// params are optional
params = params || {};
- params.appendFormat = ('appendFormat' in params) ? params.appendFormat : true;
// if params arg omitted, second arg may be `actions`
if (typeof params == 'function') {
actions = params;
params = {};
}
+
+ params.appendFormat = ('appendFormat' in params) ? params.appendFormat : true;
// If resource uses the path param, it's subroutes should be
// prefixed by path, not the resource's name
Please sign in to comment.
Something went wrong with that request. Please try again.