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