Permalink
Browse files

Merge pull request #11 from jfremy/patch-1

Make sure appendFormat is always
  • Loading branch information...
1602 committed Nov 26, 2012
2 parents ad9c84d + b7e48d6 commit 2807e1eeb0ccd6ffd3784df50dd5e8a1626573bd
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/railway_routes.js
View
@@ -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

0 comments on commit 2807e1e

Please sign in to comment.