Sha256: a63a9dc581967edf0a905b4918ad201fd8b4d704534fe9cfc0e56a4ff47139ba
Contents?: true
Size: 280 Bytes
Versions: 5
Compression:
Stored size: 280 Bytes
Contents
class StringField < Field def search_terms_set(record) record.get(name).to_s.gsub(/\W+/, ' ').split end def untypecast(value, record) value.nil? ? nil : value.to_s end def from_json(value, record) value.to_s end end Field::TYPES['string'] = StringField
Version data entries
5 entries across 5 versions & 1 rubygems