Sha256: b0744a52f1fbb31667cfc824392d4fdfaf738fba1dd154b99fc41e07fae0e5ab
Contents?: true
Size: 606 Bytes
Versions: 9
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true module Decidim # A moderation belongs to a reportable and includes many reports class Moderation < ApplicationRecord belongs_to :reportable, foreign_key: "decidim_reportable_id", foreign_type: "decidim_reportable_type", polymorphic: true belongs_to :participatory_space, foreign_key: "decidim_participatory_space_id", foreign_type: "decidim_participatory_space_type", polymorphic: true has_many :reports, foreign_key: "decidim_moderation_id", class_name: "Decidim::Report", dependent: :destroy delegate :feature, :organization, to: :reportable end end
Version data entries
9 entries across 9 versions & 1 rubygems