Sha256: 94b2688a749dc8bc4c1ccda10adf23c4c4f73fc7f13712f2b7ebb42f2ac9f4da

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

module PushType
  class TimeField < PushType::FieldType

    options template: 'date', form_helper: :time_field

    def from_json(val)
      val.to_time if val.present?
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
push_type_core-0.5.3 app/fields/push_type/time_field.rb
push_type_core-0.5.2 app/fields/push_type/time_field.rb
push_type_core-0.5.1 app/fields/push_type/time_field.rb
push_type_core-0.5.0 app/fields/push_type/time_field.rb
push_type_core-0.5.0.alpha.5 app/fields/push_type/time_field.rb
push_type_core-0.5.0.alpha.4 app/fields/push_type/time_field.rb
push_type_core-0.5.0.alpha.3 app/fields/push_type/time_field.rb