Sha256: e495db429b78d10dfe761a80b08abb4d060fb91cb5fe1cff9461a6c8201150f4

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

class Page < PushType::Node

  # By default a node can have children of any other node type.
  # Optionally pass a list of acceptable node types or prevent
  # any descendents by passing false.
  has_child_nodes :all

  # Model the content by adding custom fields to the node.
  # field :body, :text, validates: { presence: true }
  field :section_2, :structure do
     field :boxes, :matrix, display: (:grid || :structure) do
       field :title, :string
       field :body, :text
     end
   end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
push_type_admin-0.10.4 test/dummy/app/models/page.rb