Skip to content

Commit

Permalink
Update documentation of length validation
Browse files Browse the repository at this point in the history
  • Loading branch information
blakegearin committed Oct 17, 2022
1 parent d73d3cd commit 30edef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/validations/validates.rb
Expand Up @@ -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+
Expand Down

0 comments on commit 30edef7

Please sign in to comment.