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

Handle error message possibly already being an array #5

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

Conversation

scpike
Copy link

@scpike scpike commented Aug 26, 2024

I ran into an issue upgrading dynamic_form on an older application. I think the commit that made the library compatible with newer versions of rails inadvertently removed support for certain kinds of association validations.

It removed the messages = Array.wrap(messages) casting that handled error messages whether they were already an array or not.

I don't have a standalone reproducible example but I wanted to open this PR anyway in case anyone else runs into the same problem.

The diff is much clearer if you hide whitespace (https://github.com/payrollhero/dynamic_form/pull/5/files?diff=unified&w=1).

guanw88 added a commit to mavenlink/dynamic_form that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant