Sha256: 01abb47078c41bed34e41919fdee466ec09a85039d8cc6d9bbfa8e95d0fc1abb

Contents?: true

Size: 668 Bytes

Versions: 23

Compression:

Stored size: 668 Bytes

Contents

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)
    form_object = super object
    form_properties title: :string,
                    background: :file,
                    position: :numeric,
                    block_type: :default,
                    navbar_link: :default,
                    anchor: :string,
                    description: :default,
                    link_object_type: :default,
                    link_object_id: :numeric
    form_object
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
tramway-landing-1.2.2 app/forms/tramway/landing/block_form.rb
tramway-landing-1.2.1 app/forms/tramway/landing/block_form.rb
tramway-landing-1.2 app/forms/tramway/landing/block_form.rb