Skip to content

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