Module: Decidim::Loggable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Accountability::Result, Area, AssembliesType, Assembly, AssemblyUserRole, Blogs::Post, Budgets::Budget, Budgets::Project, CollaborativeTexts::Document, CollaborativeTexts::Version, Comments::Comment, Component, Conference, ConferenceSpeaker, ConferenceUserRole, Conferences::ConferenceInvite, Conferences::MediaLink, Conferences::Partner, Conferences::RegistrationType, Debates::Debate, Elections::Election, Initiative, InitiativesSettings, Meetings::Agenda, Meetings::AgendaItem, Meetings::Invite, Meetings::Meeting, Moderation, Newsletter, OAuthApplication, Organization, Pages::Page, ParticipatoryProcess, ParticipatoryProcessStep, ParticipatoryProcessType, ParticipatoryProcessUserRole, Proposals::CollaborativeDraft, Proposals::EvaluationAssignment, Proposals::ParticipatoryText, Proposals::Proposal, Proposals::ProposalNote, Proposals::ProposalState, Scope, Sortitions::Sortition, StaticPage, UserBaseEntity, UserModeration
- Defined in:
- decidim-core/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