app/models/tramway/event/participant_form_field.rb in tramway-event-0.5 vs app/models/tramway/event/participant_form_field.rb in tramway-event-0.6

- old
+ new

@@ -1,5 +1,7 @@ class Tramway::Event::ParticipantFormField < ::Tramway::Event::ApplicationRecord belongs_to :event, class_name: 'Tramway::Event::Event' - enumerize :field_type, in: [ :text, :numeric ], default: :text + enumerize :field_type, in: [ :text, :string, :numeric, :date_picker, :select ], default: :text + + scope :inputs_list, -> { active.order(position: :asc) } end