class

ActiveModel::Validations::LengthValidator

v3.2.8 - Show latest stable - Superclass: EachValidator

No documentation available for this class.

Constants

CHECKS = { :is => :==, :minimum => :>=, :maximum => :<= }.freeze

MESSAGES = { :is => :wrong_length, :minimum => :too_short, :maximum => :too_long }.freeze

RESERVED_OPTIONS = [:minimum, :maximum, :within, :is, :tokenizer, :too_short, :too_long]

Files

  • activemodel/lib/active_model/validations/length.rb