lib/generators/scrivito/page/templates/model.erb in scrivito_sdk-0.66.0 vs lib/generators/scrivito/page/templates/model.erb in scrivito_sdk-0.70.0.rc1
- old
+ new
@@ -1,5 +1,8 @@
class <%= class_name %> < Obj
attribute :title, :string
attribute :body, :widgetlist
attribute :child_order, :referencelist
+<% attributes.each do |attr| -%>
+ <%= Scrivito::GeneratorHelper.attribute_definition(attr) %>
+<% end -%>
end