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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d198e89de589b4b9e659fbe779aa781aa348471ebd9b61683b28ddbb14b69254
|
4
|
+
data.tar.gz: 208fae82cd0bbd069263fffbcb184c4428efedaff50e701c5403539247c9339b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 => {
|
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)
|
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-
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|