Class: Admin::Tramway::Partner::PartnershipForm

Inherits:
Tramway::ApplicationForm
  • Object
show all
Defined in:
app/forms/admin/tramway/partner/partnership_form.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ PartnershipForm

Returns a new instance of PartnershipForm.



8
9
10
11
12
13
14
# File 'app/forms/admin/tramway/partner/partnership_form.rb', line 8

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