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

Execute ConfirmationValidator validation when _confirmation's value is false #31058

Conversation

bogdanvlviv
Copy link
Contributor

In according to our documentation ConfirmationValidator validation shouldn't be executed only if _confirmation's value is nil.

https://github.com/rails/rails/blob/8a2ee3d8c6921ce34e597658e3f2b43b41423d1d/guides/source/active_record_validations.md#confirmation

# NOTE: This check is performed only if +password_confirmation+ is not
# +nil+. To require confirmation, make sure to add a presence check for
# the confirmation attribute:

@rails-bot
Copy link

r? @eileencodes

(@rails-bot has picked a reviewer for you, use r? to override)

@rafaelfranca rafaelfranca merged commit 9042ced into rails:master Nov 6, 2017
@bogdanvlviv bogdanvlviv deleted the ConfirmationValidator-with_false_value branch November 6, 2017 23:15
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.

4 participants