js/libs/ember-data.js
function(type) {
    type = this.modelFor(type);

    var typeMap = this.typeMapFor(type),
        findAllCache = typeMap.findAllCache;

    if (findAllCache) { return findAllCache; }

    var array = this.recordArrayManager.createRecordArray(type);

    typeMap.findAllCache = array;
    return array;
  }
function(type) {
    type = this.modelFor(type);

    var typeMap = this.typeMapFor(type),
        findAllCache = typeMap.findAllCache;

    if (findAllCache) { return findAllCache; }

    var array = this.recordArrayManager.createRecordArray(type);

    typeMap.findAllCache = array;
    return array;
  }
This method returns a filtered array that contains all of the known records
for a given type.

Note that because it's just a filter, it will have any locally
created records of the type.

Also note that multiple calls to `all` for a given type will always
return the same RecordArray.

Example

```javascript
var local_posts = store.all(App.Post);
```

@method all
@param {String or subclass of DS.Model} type
@return {DS.RecordArray}