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: d65d3e73d599c0be0941245885fe76c7d01d8cb3e9fb76badb9eae450401884a
4
- data.tar.gz: 5c0f800bb5061028e4ea43487aaaa3811d28de9fc4708512a0c1f86b26a4f26f
3
+ metadata.gz: 7a477c5db416b585854c4e5f5958916660b1d4728ec8b902d755763326e59463
4
+ data.tar.gz: 8e6fdc6e31c262da2446718aaee7083fa4e4788272eb13841da212504903e11b
5
5
  SHA512:
6
- metadata.gz: 287fc59a2f3462bdcec240d865fce72f0ed54641c0841086616c67aae53dbd629e0b1dcc0366e972109b50afa6bee3e8aa26c53f671f5c55c581dfedb1f29238
7
- data.tar.gz: 0ea8a1d331138ba7af4e7b6fc7a67375c0b1f6e3eb817e76482b1e445ce6b3e25eb14b3c95aaa82baad50723c6e0139fabcbe64a245d4c0126897519c27f0b64
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)
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9.17'
3
+ VERSION = '1.9.18'
4
4
  end
5
5
  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.17
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-07-30 00:00:00.000000000 Z
11
+ date: 2019-08-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email: