mongoosastic/mongoosastic — pull request #27 by ignlg (2014-11-10 11:51:45+00:00)
Title: Serialize on bulk calls. Serialize: this = full model.

- Serialize function now has the model as `this`.
- `cast` callback now has the entire model as `this`, so it can access another field:
```
...

es_cast: function() {
return this.title;
}
...
```
- Bulk mode serializes too.

No new tests needed, this commit doesn't change functionality. All tests passed.