Sha256: 2b565149535243a933e8a86ef1ccf1b33971fc698c92a2f794a26af5bc188fe1
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true class Tramway::Event::ParticipantFormField < ::Tramway::Event::ApplicationRecord belongs_to :event, class_name: 'Tramway::Event::Event' enumerize :field_type, in: %i[text string numeric date_picker select], default: :text scope :inputs_list, -> { active.order(position: :asc) } def required options&.dig('validations', 'presence') == 'true' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.9.31.1 | app/models/tramway/event/participant_form_field.rb |