Sha256: 572ebcb20bb496d78d4f508dbdff736305849b57cb7d43bd3f3e70bf04e8df36
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 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 } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_type_admin-0.11.0.beta.2 | test/dummy/app/models/page.rb |
push_type_admin-0.9.5 | test/dummy/app/models/page.rb |