mysociety/popit-api — pull request #46 by hecticjeff (2014-04-01 10:05:29+00:00)
Title: Membership relations elasticsearch

- Refactor models.js and remove collections.js to make it easier to override methods in individual models.
- Override Membership model's `toElasticsearch` method to also index related models

Fixes https://github.com/mysociety/popit/issues/314