Skip to content

Instantly share code, notes, and snippets.

@andreisoare
Last active December 20, 2015 06:29
Show Gist options
  • Save andreisoare/6085757 to your computer and use it in GitHub Desktop.
Save andreisoare/6085757 to your computer and use it in GitHub Desktop.
all: function() {
var records = Ember.RecordArray.create({
modelClass: this,
content: []
});
var cache = this.recordCache;
if (!cache) { return records; }
Object.keys(cache).forEach(function(id) {
records.addObject(cache[id]);
});
return records;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment