Sha256: e1392f17076629bca81edcf7427de88bb6ef1a0ef8399fe2f7a01e0ee299ad48
Contents?: true
Size: 762 Bytes
Versions: 13
Compression:
Stored size: 762 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 private def meeting @meeting ||= Meeting.where(component: current_component).find(params[:meeting_id]) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems