Sha256: 8f149496d9026304f4b0819475907f565a9ddb459dedc46229cc6dedd772fdd1
Contents?: true
Size: 303 Bytes
Versions: 17
Compression:
Stored size: 303 Bytes
Contents
class IntegerFormatValidator < CsvRowModel::Validators::NumberValidator # :nodoc: def validate_each(record, attribute, value) before, after = before_after_decimal(value) return if value.to_i.to_s == before && after.empty? record.errors.add(attribute, 'is not a Integer format') end end
Version data entries
17 entries across 17 versions & 1 rubygems