Skip to content

support store_model type associations #74

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

noahhaon
Copy link

Hi,

The store_model gem is a handy way to embed ActiveModel models inside other models and supports Arrays, which would be great to use with vanilla-nested. Unfortunately these relations are not exposed via reflection, so this breaks vanilla-nested's logic when creating the link.

This PR allow specifying the klass manually in link_to_add_nested and does not fail if it can't derive the limit attribute from the reflected association.

@arielj
Copy link
Owner

arielj commented Dec 7, 2023

Hey, sorry, I never saw this PR. I'll review it during the weekend and merge it or leave some feedback. Thanks!

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