DS.RESTAdapter#updateRecord()

updateRecord (store, type, snapshot) Promise

Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:735

Called by the store when an existing record is saved via the save method on a model record instance.

The updateRecord method serializes the record and makes an Ajax (HTTP PUT) request to a URL computed by buildURL.

See serialize for information on how to customize the serialized form of a record.

Parameters:

store DS.Store
type DS.Model
snapshot DS.Snapshot

Returns:

Promise
promise
doc_EmberJs
2016-11-30 16:50:33
Comments
Leave a Comment

Please login to continue.