mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
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
This commit is contained in:
parent
44128a5d23
commit
998ca55e3d
@ -42,7 +42,7 @@ document = {
|
|||||||
'title' => 'Title 1',
|
'title' => 'Title 1',
|
||||||
'date' => '2015-12-20'
|
'date' => '2015-12-20'
|
||||||
},
|
},
|
||||||
'associations' => {
|
'relationships' => {
|
||||||
'author' => {
|
'author' => {
|
||||||
'data' => {
|
'data' => {
|
||||||
'type' => 'user',
|
'type' => 'user',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user