Update documentation of length validation

This commit is contained in:
Blake Gearin 2022-10-17 16:11:50 -05:00 committed by GitHub
parent d73d3cdda5
commit 30edef785f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -96,7 +96,7 @@ module ClassMethods
# Example:
#
# validates :password, presence: true, confirmation: true, if: :password_required?
# validates :token, length: 24, strict: TokenLengthException
# validates :token, length: {is: 24}, strict: TokenLengthException
#
#
# Finally, the options +:if+, +:unless+, +:on+, +:allow_blank+, +:allow_nil+, +:strict+