Module: Decidim::Forms::Admin::Concerns::HasQuestionnaire

Extended by:
ActiveSupport::Concern
Included in:
Elections::Admin::FeedbackFormsController, Meetings::Admin::RegistrationFormController, Surveys::Admin::SurveysController, Templates::Admin::QuestionnaireTemplates::QuestionnairesController
Defined in:
decidim-forms/app/controllers/decidim/forms/admin/concerns/has_questionnaire.rb

Overview

Questionnaires can be related to any class in Decidim, in order to manage the questionnaires for a given type, you should create a new controller and include this concern.

The only requirement is to define a `questionnaire_for` method that returns an instance of the model that questionnaire belongs to.