lib/generators/scrivito/page/templates/model.erb in scrivito_sdk-0.50.1 vs lib/generators/scrivito/page/templates/model.erb in scrivito_sdk-0.60.0.rc1
- old
+ new
@@ -1,9 +1,5 @@
class <%= class_name %> < Obj
- #
- # = Scrivito Attributes
- #
- # title: string
- # body: widget
- # child_order: referencelist
- #
+ attribute :title, :string
+ attribute :body, :widgetlist
+ attribute :child_order, :referencelist
end