devour-client
devour-client copied to clipboard
_serialize needs to pluralize relationship types
When a new object is created pluralize is not used on the relationship type:
serializeRelationships[relationshipName] = serializeHasOne(relationship, relationshipType.type);
The above only takes the single type but shouldn't it also do something like
var typeName = options.type || this.pluralize(modelName);