Sha256: 5d0041c3415e3cb3e71ac3d097480015c2ff31e1a5c7c0bd33d77ac7042b2ae4
Contents?: true
Size: 900 Bytes
Versions: 58
Compression:
Stored size: 900 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings module Admin # This controller allows an admin to manage the form to be filled when an user joins the meeting class RegistrationFormController < Admin::ApplicationController include Decidim::Forms::Admin::Concerns::HasQuestionnaire def questionnaire_for meeting end def update_url meeting_registrations_form_path(meeting_id: meeting.id) end def after_update_url edit_meeting_registrations_path(meeting_id: meeting.id) end def public_url Decidim::EngineRouter.main_proxy(current_component).join_meeting_registration_path(meeting) end private def meeting @meeting ||= Meeting.where(component: current_component).find(params[:meeting_id]) end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems