app/forms/admin/tramway/event/participant_form.rb in tramway-event-1.12.6 vs app/forms/admin/tramway/event/participant_form.rb in tramway-event-1.12.6.2
- old
+ new
@@ -1,18 +1,17 @@
# frozen_string_literal: true
require 'securerandom'
class Admin::Tramway::Event::ParticipantForm < ::Tramway::Core::ApplicationForm
- properties :participation_state_event, :comment
+ properties :comment
association :event
def self.new(object)
if object.event_id.present?
::Tramway::Event::ParticipantExtendedFormCreator.create_form_class(
SecureRandom.hex,
object.event,
- participation_state_event: :default,
comment: :string
).new object
else
super(object).tap do |obj|
obj.form_properties event: :association