Last active
February 10, 2016 16:17
-
-
Save wernull/63fbd7202216d681a408 to your computer and use it in GitHub Desktop.
Hash example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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