Sha256: 0e96612fb5deef65edd29097b24cfa51394ac463815926bcfde0a315b9af10b7

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

class <%= class_name %> < Obj
  attribute :title, :string
  attribute :body, :widgetlist
  attribute :child_order, :referencelist
  attribute :tags, :stringlist
<% attrs.each do |attr| -%>
  <%= Scrivito::GeneratorHelper.attribute_definition(attr) %>
<% end -%>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrivito_sdk-1.18.0 lib/generators/scrivito/page/templates/model.erb
scrivito_sdk-1.18.0.rc1 lib/generators/scrivito/page/templates/model.erb