mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
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:
parent
28b8e3dd17
commit
24c0212c83
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user