Providing caveat in documentation (#2070)

* Providing caveat in documentation

I think it'd be helpful to mention that `jsonapi_parse!` will throw an InvalidDocument error.

* Update ember-and-json-api.md
This commit is contained in:
Matt Gardner 2017-03-08 18:04:35 -05:00 committed by L. Preston Sego III
parent 28b8e3dd17
commit 24c0212c83

View File

@ -74,6 +74,9 @@ Then, in your controller you can tell rails you're accepting and rendering the j
end
```
#### Note:
In Rails 5, the "unsafe" method ( `jsonapi_parse!` vs the safe `jsonapi_parse`) throws an `InvalidDocument` exception when the payload does not meet basic criteria for JSON API deserialization.
### Adapter Changes