Sha256: 965bdad2d53e963aea8cd3199f7edef99d62b1d4359dc9bbcea6b96e498beb4c

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Partner::PartnershipForm < ::Tramway::Core::ApplicationForm
  properties :partner_id, :organization_id, :partnership_type, :partner_type

  associations :partner, :organization

  def initialize(object)
    form_object = super object
    form_properties partner: :polymorphic_association,
                    organization: :association,
                    partnership_type: :default
    form_object
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-partner-1.0.4 app/forms/admin/tramway/partner/partnership_form.rb
tramway-partner-1.0.3.2 app/forms/admin/tramway/partner/partnership_form.rb