Sha256: a58038350fd4101edc78bf217ac5af48875f97446e6884eca7919b3f7512b7ca
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
class Tramway::Event::EventsController < Tramway::Event::ApplicationController layout 'tramway/landing/application' def show @event = ::Tramway::Event::EventDecorator.decorate ::Tramway::Event::Event.find params[:id] class_name = "ParticipantExtendedForm#{request.uuid.gsub('-', '')}" form_class = ::Tramway::Core::ExtendableForm.new(class_name, *@event.participant_form_fields.inputs_list.map(&:title).map(&:to_sym)) @participant_form = form_class.new ::Tramway::Event::Participant.new @sections_as_features = @event.sections.map { |s| ::Tramway::Event::SectionFeatureDecorator.decorate s } @sections = @event.sections.map { |s| ::Tramway::Event::SectionDecorator.decorate s } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-event-1.2.1 | app/controllers/tramway/event/events_controller.rb |
tramway-event-1.2 | app/controllers/tramway/event/events_controller.rb |