Class: Decidim::Moderation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Moderation
- Defined in:
- decidim-core/app/models/decidim/moderation.rb
Overview
A moderation belongs to a reportable and includes many reports
Class Method Summary collapse
- .log_presenter_class_for(_log) ⇒ Object
- .ransackable_associations(_auth_object = nil) ⇒ Object
- .ransackable_attributes(_auth_object = nil) ⇒ Object
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 |