Sha256: 5284c5ad83fa63cc34386e6a79540af6d863bbbfee334901cdf2f30a8eda0367

Contents?: true

Size: 216 Bytes

Versions: 35

Compression:

Stored size: 216 Bytes

Contents

module PushType
  class TimeField < PushType::FieldType

    options template:     'date',
            form_helper:  :time_field

    def value
      json_value.to_time unless json_value.blank?
    end
    
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
push_type_core-0.12.1 app/fields/push_type/time_field.rb
push_type_core-0.12.0 app/fields/push_type/time_field.rb
push_type_core-0.12.0.beta.1 app/fields/push_type/time_field.rb
push_type_core-0.11.2 app/fields/push_type/time_field.rb
push_type_core-0.11.1 app/fields/push_type/time_field.rb
push_type_core-0.11.0.beta.2 app/fields/push_type/time_field.rb
push_type_core-0.11.0.beta.1 app/fields/push_type/time_field.rb
push_type_core-0.10.4 app/fields/push_type/time_field.rb
push_type_core-0.10.3 app/fields/push_type/time_field.rb
push_type_core-0.10.2 app/fields/push_type/time_field.rb
push_type_core-0.10.1 app/fields/push_type/time_field.rb
push_type_core-0.10.0 app/fields/push_type/time_field.rb
push_type_core-0.10.0.beta.5 app/fields/push_type/time_field.rb
push_type_core-0.10.0.beta.3 app/fields/push_type/time_field.rb
push_type_core-0.9.5 app/fields/push_type/time_field.rb
push_type_core-0.9.3 app/fields/push_type/time_field.rb
push_type_core-0.9.2 app/fields/push_type/time_field.rb
push_type_core-0.9.1 app/fields/push_type/time_field.rb
push_type_core-0.9.0 app/fields/push_type/time_field.rb
push_type_core-0.9.0.beta.4 app/fields/push_type/time_field.rb