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

Avoid mutating model factory in _modelForMixin. #4808

Merged
merged 1 commit into from
Feb 20, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Feb 20, 2017

With the upcoming factory-for work it is likely that mutating the result of modelFactoryFor will throw an error. This is a minor refactoring to avoid needing to mutate the return value (since we can simply do the work before registering).

Addresses one of the issues mentioned in #4807 (comment).

With the upcoming `factory-for` work it is likely that mutating the
result of `modelFactoryFor` will throw an error.  This is a minor
refactoring to avoid needing to mutate the return value (since we
can simply do the work before registering).
@rwjblue rwjblue force-pushed the avoid-mutating-model-factory-1 branch from 8c54a92 to 9aa6f09 Compare February 20, 2017 14:47
@bmac bmac merged commit b50ed5c into master Feb 20, 2017
@bmac
Copy link
Member

bmac commented Feb 20, 2017

Thanks @rwjblue.

@bmac bmac deleted the avoid-mutating-model-factory-1 branch February 20, 2017 17:17
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

Successfully merging this pull request may close these issues.

2 participants