emberjs/data — pull request #339 by pangratz (2012-07-21 16:35:09+00:00)
Title: Support DS.Store#findAll(DS.Model)

This is my approach to implement/solve #338. I don't know if this is the `ember-data` way of solving this though ...

Previously the record hashes are stored on a per record-type basis in the `typeMap` for a record type. This solution saves all hashes in a common array on the store.

With this PR it is possible to get all models via `store.findAll(DS.Model)` or to get all records of a specific super-class:

``` javascript
Person = DS.Model.extend();
Student = Person.extend();
Teacher = Person.extend();
...
var allPersons = store.findAll(Person);
```