Skip to content

Commit

Permalink
Updated examples to match new API
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 3, 2013
1 parent 3460e87 commit b1173c8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions example/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ var Model = Database.Model;
var database = db;

var options = {
rename: {
'_id': 'username'
},
virtuals: {
API: function () {
var $ = this;
Expand Down Expand Up @@ -122,9 +119,11 @@ var Model = Database.Model;
done();
}
},
transforms: {
_id: false
},
preprocessors: [
new Database.Rename({
_id: 'username'
})
],
indexes: [
[{ email: 1 }, { unique: true, background: true }],
[{ type: 1 }, { background: true }],
Expand Down

0 comments on commit b1173c8

Please sign in to comment.