Skip to content

Instantly share code, notes, and snippets.

@wernull
Last active February 10, 2016 16:17
Show Gist options
  • Save wernull/63fbd7202216d681a408 to your computer and use it in GitHub Desktop.
Save wernull/63fbd7202216d681a408 to your computer and use it in GitHub Desktop.
Hash example
let users = [user1,user2,user3];
let promises = users.map(user => {
user.set('needsUpdate',true);
return user.save();
});
Ember.RSVP.all(promises)
.then(users => {
doSomethingWith(users);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment