Sha256: 6f4e44f949e6430f44aabf57086a80a7e9dfec07ec3827f98dbad970a5a77b9a

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 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, :wysiwyg, validates: { presence: true }
  field :seo, :structure do
    field :description, validates: { presence: true }
    field :keywords
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
push_type_wysiwyg-0.6.0.beta.1 test/dummy/app/models/page.rb