Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_serialize needs to pluralize relationship types #201

Open
JeffreyDissmann opened this issue Aug 23, 2019 · 0 comments
Open

_serialize needs to pluralize relationship types #201

JeffreyDissmann opened this issue Aug 23, 2019 · 0 comments

Comments

@JeffreyDissmann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant