Embed objects should return singular and not wrap in array

Closes #437
This commit is contained in:
Santiago Pastorino
2013-11-01 14:22:48 -02:00
parent 78cceb4113
commit 66f9256534
4 changed files with 25 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ module ActiveModel
ar_comments: [{ body: 'what a dumb post', ar_tags: [{ name: 'short' }, { name: 'whiny' }] },
{ body: 'i liked it', ar_tags: [{:name=>"short"}, {:name=>"happy"}] }],
ar_tags: [{ name: 'short' }, { name: 'whiny' }, { name: 'happy' }],
'ar_sections' => [{ 'name' => 'ruby' }]
ar_section: { 'name' => 'ruby' }
}
}, post_serializer.as_json)
end