Update documentation of length validation
This commit is contained in:
parent
d73d3cdda5
commit
30edef785f
@ -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+
|
||||
|
Loading…
Reference in New Issue
Block a user