tramway-event 1.10.0.2 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b841d056f385e8a5ddf3ef86bcb097333a2027a7587fcd524364f326cc22b39
4
- data.tar.gz: 8eb206387dd0ec9c93f5228e3e9b134ce726611838414d8b8e43feb2abd4c99a
3
+ metadata.gz: a9b457ab58d100b7c2dbfdfdd14d046993697e0e03907a644ec4207d227ff2be
4
+ data.tar.gz: df0413927172dd6780a9bdf1b98d82b6f1d56026b2dd3632689e026dbdf50b5f
5
5
  SHA512:
6
- metadata.gz: 62dacb6c653d864c7ef080107be261f274818f75202e3fab1243db4922b38a342e4a99b160504f084079cf53d33942f33160fab479ada5e9c1aef6d2ee954aca
7
- data.tar.gz: 07fb703824dc433a4f96ba9b96ccb9d8a4413bef0cb96f0a7e34ed31396db40f87c50bbace239f8af605b397a88dd32e640a75726816c725a69839dd7f9abba8
6
+ metadata.gz: de7b24ca1f481e9ab6acabae301ba9a8bd650532492d494f17ae95afc3f77508689ec6a027c8dafe8a5158bcb94a1f2bdc914da9c915bcd477e29e54d79f1705
7
+ data.tar.gz: '085e99b22a37570e5ff4e141e6435f7789cd60961c16ea8f6d811accf9650b5c00a5a1214e01de0c8ce1866cc05d7f0dac39a6b21b1ca9e832807da9f4aab20d'
@@ -7,7 +7,7 @@ class Tramway::Event::ParticipantsController < Tramway::Event::ApplicationContro
7
7
  if @participant_form.submit params[:tramway_event_participant].except :event_id
8
8
  redirect_to event_path event, flash: :success
9
9
  else
10
- redirect_to event_path event, flash: :error, errors: @participant_form.errors.messages # , participant: @participant_form.attributes
10
+ redirect_to event_path event, flash: :error, errors: @participant_form.errors.messages, participant: @participant_form.attributes
11
11
  end
12
12
  end
13
13
  end
@@ -7,5 +7,5 @@
7
7
  = simple_form_for @participant_form, url: ::Tramway::Event::Engine.routes.url_helpers.participants_path, method: :post, html: { class: class_name, id: class_name } do |f|
8
8
  = f.input :event_id, as: :hidden, input_html: { value: event.id, class: class_name, id: "#{class_name}_event_id", name: "#{class_name}[event_id]" }
9
9
  - event.participant_form_fields.inputs_list.each do |field|
10
- = render 'tramway/core/shared/input_extended', field: field, class_name: class_name, f: f
10
+ = render 'tramway/core/shared/input_extended', field: field, class_name: class_name, f: f, value: (params[:participant].present? ? params[:participant][field.title] : '')
11
11
  = f.button :submit, t('.submit_form')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Event
5
- VERSION = '1.10.0.2'
5
+ VERSION = '1.10.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.10.0.2
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov