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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 718a0e6f7d6e0f92f69447680d26c7d9c332b1dbfd2ccff67eb6bb7f3611d5e4
|
4
|
+
data.tar.gz: e5b8dc51139ad155fd6f95c0d64b92d5f0edba270947e37ddab6804a6699406d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = "
|
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 = "
|
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
|