Set result.target for update (matching _saveNew) (#6094)

* Set result.target for update (matching _saveNew)

* Add tests for update result including a target property
This commit is contained in:
Philipp Rudloff
2018-07-17 17:56:32 +02:00
committed by Robin Ward
parent 202b839208
commit 79b08b2679
2 changed files with 16 additions and 8 deletions
@@ -30,6 +30,7 @@ const RestModel = Ember.Object.extend({
self.setProperties(payload);
self.afterUpdate(res);
res.target = self;
return res;
})
.finally(() => this.set("isSaving", false));