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