class
ActiveModel::Validations::NumericalityValidator
v5.2.3 -
Show latest stable
- Superclass: EachValidator
No documentation available for this class.
Constants
CHECKS = { greater_than: :>, greater_than_or_equal_to: :>=,\nequal_to: :==, less_than: :<, less_than_or_equal_to: :<=,\nodd: :odd?, even: :even?, other_than: :!= }.freeze
INTEGER_REGEX = /\\A[+-]?\\d+\\z/
RESERVED_OPTIONS = CHECKS.keys + [:only_integer]
Files
- activemodel/lib/active_model/validations/numericality.rb