tramway-event 1.9.20 → 1.9.20.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: 4831c4831afd75add24ae237f2b1987219f7db030d2b9ef3b719ba57d910c582
4
- data.tar.gz: 749e8d726a65436c75de070d696dd988455cc5fca84aca9f4ea5b3af5017543f
3
+ metadata.gz: d198e89de589b4b9e659fbe779aa781aa348471ebd9b61683b28ddbb14b69254
4
+ data.tar.gz: 208fae82cd0bbd069263fffbcb184c4428efedaff50e701c5403539247c9339b
5
5
  SHA512:
6
- metadata.gz: 75a8767719ff68fb4e70703da4eff11786b4a30a69d91a75b538183867f2302d6d60f3d2a75759213a74d3ebc15366d90641ffb4f6b1059c8610f34c98fd4550
7
- data.tar.gz: 0c84d09c1861fb16a90d92eb3f21e5b118aa437014604210a8d77b941fac4631d7b6c108f885a55e8e03b93268cd606479887e6b2a77b2b7f8afd9e111bde8e6
6
+ metadata.gz: 6682e323bf57ffc5bf0b3500f0d48093226fb2df1078d1e136fd6ab0c1bfd598454e012ecf17b0e5a3d92c76a1cdfb3146b1a1ce07a4c58dc1d3ab170cbc1ff2
7
+ data.tar.gz: be02aef68be96ca924d0ba1f7a483a85f50fd920c28ead03be518d6fec39a9e8d8a0dcd55a9f7519fd8cd19e21870e1e25dab3510dd3eeae4c41ffbdcbcd3f39
@@ -4,7 +4,10 @@ class Tramway::Event::ParticipantExtendedFormCreator < Tramway::Core::FormCreato
4
4
  def self.create_form_class(uuid, event, **simple_properties)
5
5
  class_name = "ParticipantExtendedForm#{uuid.gsub('-', '')}"
6
6
  properties = event.participant_form_fields.inputs_list.reduce({}) do |hash, field|
7
- hash.merge! field.title.to_sym => { object: field, validates: field.options&.dig('validations') }
7
+ hash.merge! field.title.to_sym => {
8
+ object: field,
9
+ validates: (field.options == '' ? {} : field.options)&.dig('validations')
10
+ }
8
11
  end
9
12
  if simple_properties.keys.any?
10
13
  ::Tramway::Core::ExtendableForm.new(class_name, simple_properties: simple_properties, **properties)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.9.20'
5
+ VERSION = '1.9.20.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.20
4
+ version: 1.9.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-12 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: