class

ActiveModel::Validations::LengthValidator

v3.1.0 - Show latest stable - Superclass: EachValidator

No documentation available for this class.

Constants

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

DEFAULT_TOKENIZER = lambda { |value| value.split(//) }

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