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: 5934677a7693e129263e003d40fb0c32a5b192ca2473ce970ab8204cf4c11222
4
- data.tar.gz: 5fb809b1cf2495b2a6cb6230cbcebf975c0f87f1535cc7c66ed958eb5d0d5b3f
3
+ metadata.gz: eca92e584773c5effe967dedf5295b6e72760305c3d1abc02a6a8ab1f028b59b
4
+ data.tar.gz: '09dc9dd27d0faa05002dbaa131cdbe3728c2ef4fc46163090f59368561600c43'
5
5
  SHA512:
6
- metadata.gz: 82a328caebddab43227e1f8908b091312f41914676ecb859ec5b6ecaa6010ced39f8f1afc38f869894a16cecaa36cc10e38edf326fd65efb9ff74781215b7aa5
7
- data.tar.gz: 9185026a5b04a10c4efd9aed97b09d18210205e7199ae388105300e1a524547b49d09b9eeb2bec6fce242b71224d24fc8175fe483abab94fa555d45cee1a4df9
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.9.31'
5
+ VERSION = '1.9.31.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.31
4
+ version: 1.9.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov