tramway-event 1.9.31 → 1.9.31.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eca92e584773c5effe967dedf5295b6e72760305c3d1abc02a6a8ab1f028b59b
|
4
|
+
data.tar.gz: '09dc9dd27d0faa05002dbaa131cdbe3728c2ef4fc46163090f59368561600c43'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7b456fab796106a23288b814e0f9fa26046155bcea94f0cb773a5e9d88950bdc01736728313c5cb106a35e9ad122a61f7f07ea66ab7fdb392175836ec4565b
|
7
|
+
data.tar.gz: 6482ca0c495535133d2c6e3467572089ff14e86357ccddff6ad83beeadda66882fac8742b4f0460d3e1a371ff4550ba759a14bdb84e2aaec1978f7376c851375
|
@@ -6,4 +6,8 @@ class Tramway::Event::ParticipantFormField < ::Tramway::Event::ApplicationRecord
|
|
6
6
|
enumerize :field_type, in: %i[text string numeric date_picker select], default: :text
|
7
7
|
|
8
8
|
scope :inputs_list, -> { active.order(position: :asc) }
|
9
|
+
|
10
|
+
def required
|
11
|
+
options&.dig('validations', 'presence') == 'true'
|
12
|
+
end
|
9
13
|
end
|