app/forms/tramway/event/partaking_form.rb in tramway-event-1.9.19.1 vs app/forms/tramway/event/partaking_form.rb in tramway-event-1.9.19.2
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
class Tramway::Event::PartakingForm < ::Tramway::Core::ApplicationForm
properties :part_id, :part_type, :person_id, :position
associations :person, :part
def initialize(object)
super(object).tap do
form_properties part: :polymorphic_association,
- person: :association,
- position: :string
+ person: :association,
+ position: :string
end
end
end