Sha256: 2c4f778615d36eecd3f2e0c892d99b74c73bf1cb7e9b24c1464d3ff7732c2e12
Contents?: true
Size: 203 Bytes
Versions: 11
Compression:
Stored size: 203 Bytes
Contents
class ZipTypeValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) unless value.blank? record[attribute] = value.to_i return value = value.to_i + 0 end end end
Version data entries
11 entries across 11 versions & 1 rubygems