mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Always use plural for linked types
Although spec is agnostic about inflection rules, examples given are plural
This commit is contained in:
@@ -111,13 +111,13 @@ module ActionController
|
||||
"id" => "1",
|
||||
"name" => "admin",
|
||||
"links" => {
|
||||
"author" => { "linkage" => { "type" =>"author", "id" => "1" } }
|
||||
"author" => { "linkage" => { "type" =>"authors", "id" => "1" } }
|
||||
}
|
||||
}, {
|
||||
"id" => "2",
|
||||
"name" => "colab",
|
||||
"links" => {
|
||||
"author" => { "linkage" => { "type" =>"author", "id" => "1" } }
|
||||
"author" => { "linkage" => { "type" =>"authors", "id" => "1" } }
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user