Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Return Bool for all validations to allow for conditional validating. #744

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

jwoertink
Copy link
Member

Fixes #624

This doesn't really change anything if you leave your code as is, but now that they return a Bool, you can use that to conditionally run extra validations.

if validate_required(username)
  # run some more complex validations
end

@jwoertink jwoertink merged commit f409ee4 into master Oct 15, 2021
@jwoertink jwoertink deleted the issues/624 branch October 15, 2021 21:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validators should return their success or failure
1 participant