Skip to content

Commit

Permalink
remove application-specific logic from REST formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dchester committed May 13, 2012
1 parent 5a9d37b commit 2d3ee0c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plugins/rest/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ RestPlugin.prototype.routes = function () {
var o = obj.toObject ? obj.toObject() : obj;
o.id = obj._id;
delete o._id;
delete o.id_;
delete o.managerId_;
if (M && M.modelName == 'user')
o.password = '';
var manager = obj.manager;
o.managerFirstName = manager ? manager.firstName : '';
o.managerLastName = manager ? manager.lastName : '';
o.managerId = manager && manager._id ? manager._id.toString() : manager || '';
delete o.reports;
delete o.manager;
return o;
}
}
Expand Down

0 comments on commit 2d3ee0c

Please sign in to comment.