Class: Decidim::Meetings::Poll
- Inherits:
 - 
      ApplicationRecord
      
        
- Object
 - ActiveRecord::Base
 - ApplicationRecord
 - Decidim::Meetings::Poll
 
 
- Defined in:
 - app/models/decidim/meetings/poll.rb
 
Constant Summary collapse
- QUESTION_TYPES =
 %w(single_option multiple_option).freeze
Instance Method Summary collapse
Instance Method Details
#has_open_questions? ⇒ Boolean
      22 23 24  | 
    
      # File 'app/models/decidim/meetings/poll.rb', line 22 def has_open_questions? has_questions? && questionnaire.questions.not_closed.exists? end  | 
  
#has_questions? ⇒ Boolean
      18 19 20  | 
    
      # File 'app/models/decidim/meetings/poll.rb', line 18 def has_questions? questionnaire&.questions&.exists? end  |