app/forms/tramway/page/page_form.rb in tramway-page-1.2.2 vs app/forms/tramway/page/page_form.rb in tramway-page-1.3
- old
+ new
@@ -1,11 +1,12 @@
class Tramway::Page::PageForm < ::Tramway::Core::ApplicationForm
- properties :title, :body, :slug
+ properties :title, :body, :slug, :view
def initialize(object)
- form_object = super object
- form_properties title: :string,
- body: :ckeditor,
- slug: :string
- form_object
+ super(object).tap do
+ form_properties title: :string,
+ body: :ckeditor,
+ slug: :string,
+ view: :string
+ end
end
end