From 998ca55e3ddac79f62249cbf252f0a9e1130ee2f Mon Sep 17 00:00:00 2001 From: Spencer Oberstadt Date: Wed, 1 Jun 2016 16:50:15 -0400 Subject: [PATCH] Fix docs for deserialization (#1768) I found in the tests that deserialization expects relationships to be under a `relationships` key. https://github.com/rails-api/active_model_serializers/blob/master/test/action_controller/json_api/deserialization_test.rb#L68 --- docs/general/deserialization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/general/deserialization.md b/docs/general/deserialization.md index 41433c1c..995abea9 100644 --- a/docs/general/deserialization.md +++ b/docs/general/deserialization.md @@ -42,7 +42,7 @@ document = { 'title' => 'Title 1', 'date' => '2015-12-20' }, - 'associations' => { + 'relationships' => { 'author' => { 'data' => { 'type' => 'user',