Class: Tramway::Event::ParticipantFormField
- Inherits:
-
Core::ApplicationRecord
- Object
- Core::ApplicationRecord
- Tramway::Event::ParticipantFormField
- Defined in:
- app/models/tramway/event/participant_form_field.rb
Instance Method Summary collapse
Instance Method Details
#required ⇒ Object
10 11 12 |
# File 'app/models/tramway/event/participant_form_field.rb', line 10 def required .present? && .dig('validations', 'presence') == 'true' end |
#validations ⇒ Object
14 15 16 |
# File 'app/models/tramway/event/participant_form_field.rb', line 14 def validations ( == '' ? {} : )&.dig('validations') end |