Skip to content

Commit

Permalink
[DOC] fix import path in JSON serializer documentation (#7111)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Apr 6, 2020
1 parent df1c665 commit 6404a2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/serializer/addon/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,6 @@ const JSONSerializer = Serializer.extend({
```app/serializers/post.js
import JSONSerializer from '@ember-data/serializer/json';
import DS from 'ember-data';
export default JSONSerializer.extend({
serializeHasMany(snapshot, json, relationship) {
Expand Down Expand Up @@ -1366,7 +1365,7 @@ const JSONSerializer = Serializer.extend({
behavior to deal with a different format of errors:
```app/serializers/post.js
import DS from 'ember-data';
import JSONSerializer from '@ember-data/serializer/json';
export default JSONSerializer.extend({
extractErrors(store, typeClass, payload, id) {
Expand Down

0 comments on commit 6404a2d

Please sign in to comment.