class
ActiveModel::Validations::LengthValidator
rails latest stable
- Superclass: EachValidator
No documentation available for this class.
Included modules
- ActiveModel::Validations::ResolveValue
Constants
CHECKS = { is: :==, minimum: :>=, maximum: :<= }.freeze
MESSAGES = { is: :wrong_length, minimum: :too_short, maximum: :too_long }.freeze
RESERVED_OPTIONS = [:minimum, :maximum, :within, :is, :too_short, :too_long]
Files
- activemodel/lib/active_model/validations/length.rb