Sha256: 018c68cbb2bc73701b456235831e531a06c1b39abe3c0c1e15ee7cc4aeec5acb

Contents?: true

Size: 192 Bytes

Versions: 30

Compression:

Stored size: 192 Bytes

Contents

module PushType
  class BooleanField < PushType::FieldType

    options json_primitive: :boolean,
            form_helper: :check_box

    def value
      json_value.to_bool
    end

  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

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