Sha256: 004e0a76fbd4b80644f4489855816cccbd3ef518961e36f20e68877da8c33096
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
module PushType class TimeField < PushType::FieldType def template @opts[:template] || 'date' end def form_helper @opts[:form_helper] || :time_field end def from_json(val) return if val.blank? val.to_time 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/time_field.rb |
push_type_core-0.5.0.alpha.1 | app/fields/push_type/time_field.rb |