Sha256: 70fa13858fbb763faddcb267476c124c0be5442099d511148a750c5911bd1194
Contents?: true
Size: 990 Bytes
Versions: 45
Compression:
Stored size: 990 Bytes
Contents
# frozen_string_literal: true module Decidim module Consultations class Response < ApplicationRecord include Decidim::TranslatableResource translatable_fields :title belongs_to :question, foreign_key: "decidim_consultations_questions_id", class_name: "Decidim::Consultations::Question", counter_cache: :responses_count, inverse_of: :responses has_many :votes, foreign_key: "decidim_consultations_response_id", class_name: "Decidim::Consultations::Vote", inverse_of: :response, dependent: :restrict_with_error belongs_to :response_group, foreign_key: "decidim_consultations_response_group_id", class_name: "Decidim::Consultations::ResponseGroup", inverse_of: :responses, counter_cache: :responses_count, optional: true end end end
Version data entries
45 entries across 45 versions & 1 rubygems