test/fixtures/serialisation/class_hash.yaml.erb in spontaneous-0.2.0.beta4 vs test/fixtures/serialisation/class_hash.yaml.erb in spontaneous-0.2.0.beta5
- old
+ new
@@ -16,39 +16,51 @@
:schema_id: <%= @fp[:title].schema_id.to_s %>
:type: Spontaneous.Field.String
:title: Title
:comment: ""
:writable: true
+ :list: true
- :name: location
:schema_id: <%= @fp[:location].schema_id.to_s %>
:type: Spontaneous.Field.String
:title: Where
:comment: Fill in the address
:writable: true
+ :list: true
- :name: date
:schema_id: <%= @fp[:date].schema_id.to_s %>
:type: Spontaneous.Field.Date
:title: Date
:comment: ""
:writable: true
:date_format: "%A, %-d %B, %Y"
+ :list: true
- :name: image
:schema_id: <%= @fp[:image].schema_id.to_s %>
:type: Spontaneous.Field.Image
:title: Image
:comment: ""
:writable: true
+ :list: true
+- :name: another
+ :schema_id: <%= @fp[:another].schema_id.to_s %>
+ :type: Spontaneous.Field.String
+ :title: Another
+ :comment: ""
+ :writable: true
+ :list: false
:boxes:
- :name: things
:id: <%= SerialisedPiece.boxes[:things].schema_id.to_s %>
:title: My Things
:writable: true
:allowed_types:
- - SerialisedPage
+ - :type: SerialisedPage
:fields:
- :name: title
:schema_id: <%= SerialisedPiece.boxes[:things].field_prototypes[:title].schema_id.to_s %>
:type: Spontaneous.Field.String
:title: Title
:comment: ""
:writable: true
+ :list: true
:source: <%= source %>