app/models/tramway/event/participant_form_field.rb in tramway-event-1.12.6.4 vs app/models/tramway/event/participant_form_field.rb in tramway-event-1.12.7
- old
+ new
@@ -3,10 +3,10 @@
class Tramway::Event::ParticipantFormField < ::Tramway::Core::ApplicationRecord
belongs_to :event, class_name: 'Tramway::Event::Event'
enumerize :field_type, in: %i[text string numeric date_picker select checkbox], default: :text
- scope :inputs_list, -> { active.order(position: :asc) }
+ scope :inputs_list, -> { order(position: :asc) }
def required
options.present? && options.dig('validations', 'presence') == 'true'
end