app/forms/tramway/landing/block_form.rb in tramway-landing-1.4.7 vs app/forms/tramway/landing/block_form.rb in tramway-landing-1.4.7.1
- old
+ new
@@ -1,8 +1,8 @@
class Tramway::Landing::BlockForm < ::Tramway::Core::ApplicationForm
properties :title, :background, :view_state, :block_type, :position, :navbar_link, :anchor, :description, :link_object_type, :link_object_id
- def initialize(object)
+ def initialize(object = nil)
form_object = super object
form_properties title: :string,
background: :file,
position: :numeric,
block_type: :default,