tramway-event 0.6 → 0.7

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: 0b2fdb2461f25bcc59c92c8775b5b3968ca209196b6995136f86403c058d1e00
4
- data.tar.gz: 78dabdb189958cc8e29f4b98462558a7aea93a0d4abc8cd3977d8ad1b4eb9ab0
3
+ metadata.gz: 718a0e6f7d6e0f92f69447680d26c7d9c332b1dbfd2ccff67eb6bb7f3611d5e4
4
+ data.tar.gz: e5b8dc51139ad155fd6f95c0d64b92d5f0edba270947e37ddab6804a6699406d
5
5
  SHA512:
6
- metadata.gz: 59cb50910c2b61ccbd5f8cd7a1ba49097b690ec00a89f0c9812269f62fc6425aaa70569ee37c6db397fd4edc36ccb02de254e388218f35bcb47bed8ca6ec415a
7
- data.tar.gz: b099a0ea2122f482e734e51b42426d7d3204029798d69246fb843b50328c82d8e3522a3d772a50ce4be03e2c359b5d1ae6fbf6c09041cb7f3c092c7766f7dc14
6
+ metadata.gz: f40c748647ca5ea4331feee2c5ac5df6d2b7ed1a61bebaf740cd84f177dc7286d72b95ffd079d072c4b008c20d66088116df9e7950a1bc77c8c64432148081c0
7
+ data.tar.gz: 2cffc2d16a51f96213bc484228062a99337b096b382d71671bbb207825b238ddbcaa2b25ad8e48774d89b4025221667b0a572d4e09d47b30e515fa99b65224ce
@@ -3,7 +3,7 @@ class Tramway::Event::EventsController < Tramway::Event::ApplicationController
3
3
 
4
4
  def show
5
5
  @event = ::Tramway::Event::EventDecorator.decorate ::Tramway::Event::Event.find params[:id]
6
- class_name = "ParticipantExtendedFormEventId#{@event.id}"
6
+ class_name = "ParticipantExtendedForm#{request.uuid.gsub('-', '')}"
7
7
  form_class = ::Tramway::Core::ExtendableForm.new(class_name, *@event.participant_form_fields.inputs_list.map(&:title).map(&:to_sym))
8
8
  @participant_form = form_class.new ::Tramway::Event::Participant.new
9
9
  end
@@ -1,7 +1,7 @@
1
1
  class Tramway::Event::ParticipantsController < Tramway::Event::ApplicationController
2
2
  def create
3
3
  event = ::Tramway::Event::Event.find params[:tramway_event_participant][:event_id]
4
- class_name = "ParticipantExtendedFormEventId#{event.id}"
4
+ class_name = "ParticipantExtendedForm#{request.uuid.gsub('-', '')}"
5
5
  form_class = ::Tramway::Core::ExtendableForm.new(class_name, *(event.participant_form_fields.inputs_list.map(&:title)).map(&:to_sym))
6
6
  @participant_form = form_class.new ::Tramway::Event::Participant.new event_id: event.id
7
7
  if @participant_form.submit params[:tramway_event_participant].except :event_id
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '0.6'
3
+ VERSION = '0.7'
4
4
  end
5
5
  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: '0.6'
4
+ version: '0.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov