-
Notifications
You must be signed in to change notification settings - Fork 184
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
validation blocks with inherit: true option ignore other options #533
Comments
Could you make a quick example of the validation blocks and "positions" for such an |
@apotonick
in the main class
or we want add dependency from other validation
this code will not work
|
but we need to think about another validation dependency
condition for phone_validation will always be true because the position phone_validation will be before address_validation when we will overwrite it |
I think that when we use inherit: true, we should merge new options to parent validation bock as it work in property inherit: true and move the validation position to the end of the groups.
https://github.com/trailblazer/reform/blob/master/lib/reform/validation/groups.rb#L17
The text was updated successfully, but these errors were encountered: