-
-
Notifications
You must be signed in to change notification settings - Fork 910
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
Allow validates_length_of to work on association - Fix #1007 #1124
Allow validates_length_of to work on association - Fix #1007 #1124
Conversation
…gn to the association instead of a string
This enhancement works but I'm struggling to test it. Would love some guidance on creating a test model with a |
It would be great to have this feature in the main gem! |
@mcmire is there anything pending for this PR? |
@KapilSachdev Yes. In order to merge this addition, there need to be tests. Essentially, most of the scenarios represented within
|
My bad, i missed the |
@KapilSachdev No worries, I should have said something initially when adding that tag. Thank you, that would be much appreciated! |
Closing this PR as this was implemented on #1569. |
if the length check is on an association then create an array to assign to the association instead of a string