Permalink
Browse files

Fix identation

  • Loading branch information...
1 parent 164aa23 commit 2c741fbd307417e37d66b9d0af75346b6d57daf0 @1602 committed Jan 24, 2013
Showing with 10 additions and 10 deletions.
  1. +10 −10 lib/railway_routes.js
View
@@ -381,16 +381,16 @@ Map.prototype.resources = function (name, params, actions) {
};
Map.prototype.resource = function(name, params, actions) {
- var self = this;
- // params are optional
- params = params || {};
- // if params arg omitted, second arg may be `actions`
- if (typeof params == 'function') {
- actions = params;
- params = {};
- }
- params.singleton = true;
- return this.resources(name, params, actions);
+ var self = this;
+ // params are optional
+ params = params || {};
+ // if params arg omitted, second arg may be `actions`
+ if (typeof params == 'function') {
+ actions = params;
+ params = {};
+ }
+ params.singleton = true;
+ return this.resources(name, params, actions);
}
/*

0 comments on commit 2c741fb

Please sign in to comment.