Class: Decidim::Moderation

Inherits:
ApplicationRecord show all
Includes:
Loggable, Traceable
Defined in:
decidim-core/app/models/decidim/moderation.rb

Overview

A moderation belongs to a reportable and includes many reports

Class Method Summary collapse

Class Method Details

.log_presenter_class_for(_log) ⇒ Object



18
19
20
# File 'decidim-core/app/models/decidim/moderation.rb', line 18

def self.log_presenter_class_for(_log)
  Decidim::AdminLog::ModerationPresenter
end

.ransackable_associations(_auth_object = nil) ⇒ Object



38
39
40
# File 'decidim-core/app/models/decidim/moderation.rb', line 38

def self.ransackable_associations(_auth_object = nil)
  []
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



34
35
36
# File 'decidim-core/app/models/decidim/moderation.rb', line 34

def self.ransackable_attributes(_auth_object = nil)
  %w(reported_id_string reported_content created_at)
end