Sha256: aad7f55a71766ff4ff24a2d9b78dfa6bce121a692138f3af8ec60230b5528f11

Contents?: true

Size: 550 Bytes

Versions: 38

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class Poll < Meetings::ApplicationRecord
      has_one :questionnaire,
              class_name: "Decidim::Meetings::Questionnaire",
              dependent: :destroy,
              inverse_of: :questionnaire_for,
              as: :questionnaire_for

      belongs_to :meeting, foreign_key: "decidim_meeting_id", class_name: "Decidim::Meetings::Meeting"

      delegate :organization, to: :meeting

      QUESTION_TYPES = %w(single_option multiple_option).freeze
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-meetings-0.27.1 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.4 app/models/decidim/meetings/poll.rb
decidim-meetings-0.27.0 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.3 app/models/decidim/meetings/poll.rb
decidim-meetings-0.27.0.rc2 app/models/decidim/meetings/poll.rb
decidim-meetings-0.27.0.rc1 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.2 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.1 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.0 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.0.rc2 app/models/decidim/meetings/poll.rb
decidim-meetings-0.26.0.rc1 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.2 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.1 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.0 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.0.rc4 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.0.rc3 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.0.rc2 app/models/decidim/meetings/poll.rb
decidim-meetings-0.25.0.rc1 app/models/decidim/meetings/poll.rb