Skip to content

Commit 24c0212

Browse files
allthesignalsNullVoxPopuli
authored andcommitted
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
1 parent 28b8e3d commit 24c0212

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/integrations/ember-and-json-api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Then, in your controller you can tell rails you're accepting and rendering the j
7474
end
7575
```
7676

77+
#### Note:
78+
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.
79+
7780

7881
### Adapter Changes
7982

0 commit comments

Comments
 (0)