Skip to content

Commit 998ca55

Browse files
soberstadtNullVoxPopuli
authored andcommitted
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
1 parent 44128a5 commit 998ca55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general/deserialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ document = {
4242
'title' => 'Title 1',
4343
'date' => '2015-12-20'
4444
},
45-
'associations' => {
45+
'relationships' => {
4646
'author' => {
4747
'data' => {
4848
'type' => 'user',

0 commit comments

Comments
 (0)