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

fix accepts_nested_attributes_for triggering db connection in rails 7.2 #194

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

balbesina
Copy link
Contributor

@balbesina balbesina commented Nov 21, 2024

manually store types of attributes defined by storemodel and use it for nested attributes preprocessing when db connection of activerecord model is not available.

add single types/base to simplify storemodel attribute detection.

@balbesina
Copy link
Contributor Author

heh, it was epic fail. i forgot about rails < 7.2 :)

Copy link
Owner

@DmitryTsepelev DmitryTsepelev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's give it a shot 🙂

@DmitryTsepelev DmitryTsepelev merged commit bec6015 into DmitryTsepelev:master Nov 23, 2024
20 checks passed
evaniainbrooks added a commit to evaniainbrooks/store_model that referenced this pull request Nov 29, 2024
evaniainbrooks added a commit to evaniainbrooks/store_model that referenced this pull request Nov 29, 2024
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