Module: Decidim::Loggable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Area, Component, Moderation, Newsletter, OAuthApplication, Organization, Scope, StaticPage, UserBaseEntity
- Defined in:
- lib/decidim/loggable.rb
Overview
A concern that adds logging capability to the given model. Including this allows ‘Decidim::ActionLog` instances related to this class to properly render.
We encourage you to overwrite the ‘log_presenter_class_for` class method to return your custom presenter for the given log type.
Example:
class MyModel < ApplicationRecord
include Decidim::Loggable
end