Sha256: 332ecabb5e4f1b489bb2486c2c8780f09db77ce07f8576f7a0480951157f0728
Contents?: true
Size: 565 Bytes
Versions: 12
Compression:
Stored size: 565 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_process, foreign_key: "decidim_participatory_process_id", class_name: "Decidim::ParticipatoryProcess" has_many :reports, foreign_key: "decidim_moderation_id", class_name: "Decidim::Report" delegate :feature, :organization, to: :reportable end end
Version data entries
12 entries across 12 versions & 2 rubygems