I would like to create routes with forms/input that change several models and then save all changes either as I transition away or with a single action. Ideally, something like this:
App.Autosavable = Ember.Mixin.create({
actions: {
willTransition: function(transition) {
//Saving everything.
console.log("App.Autosavable::willTransition: Saving any dirty records")
this.store.commit();
}
}
});
Unfortunately it seems that committing the store has been replaced with the pattern of explicitly saving each model.
If I have complex actions on my route, does that mean I must keep track of each model that could be changed for each route and save it explicitly?
I'd really like to just save everything that the store has listed internally as an updated attribute for every model.