Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobm committed Mar 20, 2016
1 parent 836acb2 commit 469869a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/serializers/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -1270,12 +1270,12 @@ export default Serializer.extend({
},

/**
`extractErrors` is used to extract model errors when a call is made
to `DS.Model#save` which fails with an `InvalidError`. By default
`extractErrors` is used to extract model errors when a call
to `DS.Model#save` fails with an `InvalidError`. By default
Ember Data expects error information to be located on the `errors`
property of the payload object.
This serializer expects the `errors` object to be an Array similar
This serializer expects this `errors` object to be an Array similar
to the following, compliant with the JSON-API specification:
```js
Expand Down Expand Up @@ -1320,7 +1320,7 @@ export default Serializer.extend({
```
When turn into a `DS.Errors` object, you can read these errors
through the virtual property `base`:
through the property `base`:
```handlebars
{{#each model.errors.base as |error|}}
Expand Down

0 comments on commit 469869a

Please sign in to comment.