Update index.html.md

Fixed a small discrepancy between example message "must be greater than 18" and expression `if value < 18`
This commit is contained in:
wintersolutions 2019-11-23 17:09:45 +01:00 committed by Svyatoslav Kryukov
parent dabd5d9211
commit cc51dd708d
No known key found for this signature in database
GPG Key ID: E1EB3B4F3AE95534
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class NewUserContract < Dry::Validation::Contract
end
rule(:age) do
key.failure('must be greater than 18') if value < 18
key.failure('must be greater than 18') if value <= 18
end
end