From 24c0212c83260d1074c27ab296028824f3f49099 Mon Sep 17 00:00:00 2001 From: Matt Gardner Date: Wed, 8 Mar 2017 18:04:35 -0500 Subject: [PATCH] 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 --- docs/integrations/ember-and-json-api.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/integrations/ember-and-json-api.md b/docs/integrations/ember-and-json-api.md index 57454b72..eb7f1ade 100644 --- a/docs/integrations/ember-and-json-api.md +++ b/docs/integrations/ember-and-json-api.md @@ -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