call (DataMapper::Validate::NumericValidator)

    # File lib/dm-validations/validators/numeric_validator.rb, line 10
          def call(target)
            value = target.send(field_name)
            return true if allow_nil? && value.blank?

            errors = []

            validate_with(integer_only? ? :integer : :numeric, value, errors)

            add_errors(target, errors)

            # if the number is invalid, skip further tests
            return false if errors.any?

            [ :gt, :lt, :gte, :lte, :eq, :ne ].each do |validation_type|
              validate_with(validation_type, value, errors)
            end

            add_errors(target, errors)

            errors.empty?
          end