Class: ActiveModel::Validations::NumericalityValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/client_side_validations/rails_2/active_record/active_model/validations/numericality.rb

Constant Summary collapse

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