Always use plural for linked types

Although spec is agnostic about inflection rules, examples given are plural
This commit is contained in:
Mateo Murphy
2015-03-20 14:17:03 -04:00
parent 0f55f21266
commit d82c599c68
9 changed files with 51 additions and 51 deletions

View File

@@ -32,8 +32,8 @@ module ActiveModel
id: "1",
links: {
comments: { linkage: [] },
blog: { linkage: { type: "blog", id: "999" } },
author: { linkage: { type: "author", id: "1" } }
blog: { linkage: { type: "blogs", id: "999" } },
author: { linkage: { type: "authors", id: "1" } }
}
},
{
@@ -42,8 +42,8 @@ module ActiveModel
id: "2",
links: {
comments: { linkage: [] },
blog: { linkage: { type: "blog", id: "999" } },
author: { linkage: { type: "author", id: "1" } }
blog: { linkage: { type: "blogs", id: "999" } },
author: { linkage: { type: "authors", id: "1" } }
}
}
]
@@ -59,16 +59,16 @@ module ActiveModel
title: "Hello!!",
links: {
comments: { linkage: [] },
blog: { linkage: { type: "blog", id: "999" } },
author: { linkage: { type: "author", id: "1" } }
blog: { linkage: { type: "blogs", id: "999" } },
author: { linkage: { type: "authors", id: "1" } }
}
},
{
title: "New Post",
links: {
comments: { linkage: [] },
blog: { linkage: { type: "blog", id: "999" } },
author: { linkage: { type: "author", id: "1" } }
blog: { linkage: { type: "blogs", id: "999" } },
author: { linkage: { type: "authors", id: "1" } }
}
}
]