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

upsert won't work with polymorphic association #287

Open
zedtux opened this issue Aug 1, 2022 · 0 comments
Open

upsert won't work with polymorphic association #287

zedtux opened this issue Aug 1, 2022 · 0 comments
Labels
bug Something that was working before, dont anymore.

Comments

@zedtux
Copy link
Collaborator

zedtux commented Aug 1, 2022

Given a model including a belongs_to association with the polymorphic: true attribute, calling .upsert or .upsert! fails with the error class NoBrainer::Error::InvalidType from the file document/association/belongs_to:107.

@zedtux zedtux added the bug Something that was working before, dont anymore. label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that was working before, dont anymore.
Projects
None yet
Development

No branches or pull requests

1 participant