Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created April 30, 2015 18:12
Show Gist options
  • Save jdcauley/4a98f5698eba664fed53 to your computer and use it in GitHub Desktop.
Save jdcauley/4a98f5698eba664fed53 to your computer and use it in GitHub Desktop.
Ember Repairs
extractArray: function(store, type, payload) {
var users = payload;
users.nextObject = null;
users._super = null;
users.firstObject = null;
users.lastObject = null;
users.container = null;
payload = {};
payload.users = users;
return this._super(store, type, payload);
}
main: function(){
return this.store.find('widget');
}.property(),
other: function(){
return this.store.find('user');
}.property(),
{{#each widget in main}}
{{widget.id}}
{{/each}}
{{#each user in other}}
{{user.id}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment