app/forms/tramway/event/partaking_form.rb in tramway-event-1.6.4 vs app/forms/tramway/event/partaking_form.rb in tramway-event-1.7
- old
+ new
@@ -1,11 +1,11 @@
class Tramway::Event::PartakingForm < ::Tramway::Core::ApplicationForm
- properties :section_id, :person_id, :position
- associations :section, :person
+ properties :part_id, :part_type, :person_id, :position
+ associations :person, :part
def initialize(object)
super(object).tap do
- form_properties section: :association,
+ form_properties part: :polymorphic_association,
person: :association,
position: :string
end
end
end