app/models/tramway/event/participant_form_field.rb in tramway-event-1.9.19.1 vs app/models/tramway/event/participant_form_field.rb in tramway-event-1.9.19.2
- old
+ new
@@ -1,7 +1,9 @@
+# frozen_string_literal: true
+
class Tramway::Event::ParticipantFormField < ::Tramway::Event::ApplicationRecord
belongs_to :event, class_name: 'Tramway::Event::Event'
- enumerize :field_type, in: [ :text, :string, :numeric, :date_picker, :select ], default: :text
+ enumerize :field_type, in: %i[text string numeric date_picker select], default: :text
scope :inputs_list, -> { active.order(position: :asc) }
end