devour-client icon indicating copy to clipboard operation
devour-client copied to clipboard

_serialize needs to pluralize relationship types

Open JeffreyDissmann opened this issue 6 years ago • 0 comments

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);

JeffreyDissmann avatar Aug 23 '19 20:08 JeffreyDissmann