tramway-event 1.9.17 → 1.9.18
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: 7a477c5db416b585854c4e5f5958916660b1d4728ec8b902d755763326e59463
|
4
|
+
data.tar.gz: 8e6fdc6e31c262da2446718aaee7083fa4e4788272eb13841da212504903e11b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e5d813fdac041260479dd9ca9a7056c7fa950a9b243bc363412bfeb4dcf0311cdbfddd350c3a869d332447c7d37a1ac6a07212983f22772fd020195c7ef305
|
7
|
+
data.tar.gz: 8fe32b2e3b3249595d4df51b1a5362075c199de5bad19d6abfb09535e313ff8856a896d8ae47bef703e7d8d81e8e5c657216a5bdfce5987dd6ee4124967cd7d6
|
@@ -5,7 +5,7 @@ class Tramway::Event::ParticipantsController < Tramway::Event::ApplicationContro
|
|
5
5
|
if @participant_form.submit params[:tramway_event_participant].except :event_id
|
6
6
|
redirect_to event_path event, flash: :success
|
7
7
|
else
|
8
|
-
redirect_to event_path event, flash: :error
|
8
|
+
redirect_to event_path event, flash: :error, errors: @participant_form.errors.messages
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
@@ -2,7 +2,7 @@ class Tramway::Event::ParticipantExtendedFormCreator < Tramway::Core::FormCreato
|
|
2
2
|
def self.create_form_class(uuid, event, **simple_properties)
|
3
3
|
class_name = "ParticipantExtendedForm#{uuid.gsub('-', '')}"
|
4
4
|
properties = event.participant_form_fields.inputs_list.reduce({}) do |hash, field|
|
5
|
-
hash.merge! field.title.to_sym => field
|
5
|
+
hash.merge! field.title.to_sym => { object: field, validates: field.options['validations'] }
|
6
6
|
end
|
7
7
|
if simple_properties.keys.any?
|
8
8
|
::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.
|
4
|
+
version: 1.9.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for events
|
14
14
|
email:
|