Sha256: c7f79293bbdca138794cdea6902c69bddfe27159ff6e665ddc1b1845db3c98bc
Contents?: true
Size: 284 Bytes
Versions: 2
Compression:
Stored size: 284 Bytes
Contents
module PushType class NumberField < PushType::FieldType def form_helper @opts[:form_helper] || :number_field end def to_json(val) return if val.blank? val.to_i end def from_json(val) return if val.blank? val.to_i end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_type_core-0.5.0.alpha.2 | app/fields/push_type/number_field.rb |
push_type_core-0.5.0.alpha.1 | app/fields/push_type/number_field.rb |