class Decidim::Meetings::Questionnaire

The data store for a Questionnaire in the Decidim::Meetings component.

def self.log_presenter_class_for(_log)

def self.log_presenter_class_for(_log)
  Decidim::Meetings::AdminLog::QuestionnairePresenter
end

def all_questions_unpublished?

def all_questions_unpublished?
  questions.all?(&:unpublished?)
end

def questions_editable?

Public: returns whether the questionnaire questions can be modified or not.
def questions_editable?
  has_component = questionnaire_for.meeting.respond_to? :component
  (has_component && !questionnaire_for.meeting.component.published?) || answers.empty?
end