Class ActiveModel::Validations::NumericalityValidator
In: lib/active_model/validations/numericality.rb
Parent: EachValidator

Methods

Constants

CHECKS = { :greater_than => :>, :greater_than_or_equal_to => :>=, :equal_to => :==, :less_than => :<, :less_than_or_equal_to => :<=, :odd => :odd?, :even => :even? }.freeze
RESERVED_OPTIONS = CHECKS.keys + [:only_integer]

Public Class methods

Public Instance methods

Protected Instance methods

[Validate]