Class: Decidim::Meetings::Questionnaire

Inherits:
ApplicationRecord show all
Includes:
Traceable
Defined in:
app/models/decidim/meetings/questionnaire.rb

Overview

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



18
19
20
# File 'app/models/decidim/meetings/questionnaire.rb', line 18

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

Instance Method Details

#all_questions_unpublished?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/decidim/meetings/questionnaire.rb', line 14

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