Skip to content

Commit

Permalink
Merge pull request emberjs#3713 from bmac/document-updateRecord
Browse files Browse the repository at this point in the history
Document the return value of DS.Adapter#updateRecord
  • Loading branch information
bmac committed Oct 12, 2015
2 parents 9f4ec7c + 4e79b27 commit e12c2bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ember-data/lib/system/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,14 @@ export default Ember.Object.extend({
Serializes the record update and sends it to the server.
The updateRecord method is expected to return a promise that will
resolve with the serialized record. This allows the backend to
inform the Ember Data store the current state of this record after
the update. If it is not possible to return a serialized record
the updateRecord promise can also resolve with `undefined` and the
Ember Data store will assume all of the updates were successfully
applied on the backend.
Example
```app/adapters/application.js
Expand Down

0 comments on commit e12c2bc

Please sign in to comment.