Skip to content

Commit

Permalink
[DOC release] Remove normalizePayload, associated docs, and mention o…
Browse files Browse the repository at this point in the history
…f functionality.

- Fixes [#3750](#3750)
  • Loading branch information
Mina Smart committed Sep 10, 2015
1 parent 61d7f42 commit dcd77f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
26 changes: 0 additions & 26 deletions packages/ember-data/lib/serializers/json-serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,32 +629,6 @@ var JSONSerializer = Serializer.extend({
},


/**
You can use this method to normalize all payloads, regardless of whether they
represent single records or an array.
For example, you might want to remove some extraneous data from the payload:
```app/serializers/application.js
import DS from 'ember-data';
export default DS.JSONSerializer.extend({
normalizePayload: function(payload) {
delete payload.version;
delete payload.status;
return payload;
}
});
```
@method normalizePayload
@param {Object} payload
@return {Object} the normalized payload
*/
normalizePayload: function(payload) {
return payload;
},

/**
@method normalizeAttributes
@private
Expand Down
3 changes: 0 additions & 3 deletions packages/ember-data/lib/system/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1692,9 +1692,6 @@ Store = Service.extend({
Alternatively, `pushPayload` will accept a model type which
will determine which serializer will process the payload.
However, the serializer itself (processing this data via
`normalizePayload`) will not know which model it is
deserializing.
```app/serializers/application.js
import DS from 'ember-data';
Expand Down

0 comments on commit dcd77f2

Please sign in to comment.