class

ActiveModel::Validations::NumericalityValidator

v3.2.1 - Show latest stable - Superclass: EachValidator

No documentation available for this class.

Constants

CHECKS = { :greater_than => :>, :greater_than_or_equal_to => :>=,\n:equal_to => :==, :less_than => :<, :less_than_or_equal_to => :<=,\n:odd => :odd?, :even => :even? }.freeze

RESERVED_OPTIONS = CHECKS.keys + [:only_integer]

Files

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