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:
committed by
Robin Ward
parent
202b839208
commit
79b08b2679
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user