Last active
December 19, 2015 19:29
-
-
Save janusch/6006670 to your computer and use it in GitHub Desktop.
What is the correct way to save records in Embah?
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
//1. | |
WeekPresence.get('transaction').commit(); | |
//2. | |
WeekPresences.pushObject(WeekPresence); | |
//3. | |
var WeekPresence = Haps.WeekPresence.createRecord({ | |
monday: this.set('model.monday', value), | |
tuesday: this.get('model.tuesday'), | |
/... | |
}); | |
//4. | |
App.store.commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment