Permalink
Browse files

Use more strict comparison.

  • Loading branch information...
olalonde committed Oct 31, 2012
1 parent 43cd0b9 commit 0bf02be962e2f4e6c9c7b49f065bc356e196f919
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/railway_routes.js
View
@@ -227,7 +227,7 @@ Map.prototype.resources = function (name, params, actions) {
var self = this;
// params are optional
params = params || {};
- params.appendFormat = (params.appendFormat == null) ? true : params.appendFormat;
+ params.appendFormat = ('appendFormat' in params) ? params.appendFormat : true;
// if params arg omitted, second arg may be `actions`
if (typeof params == 'function') {

0 comments on commit 0bf02be

Please sign in to comment.