Module: Decidim::Loggable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Accountability::Result, Area, AssembliesSetting, AssembliesType, Assembly, AssemblyMember, AssemblyUserRole, Blogs::Post, Budgets::Budget, Budgets::Project, Comments::Comment, Component, Conference, ConferenceSpeaker, ConferenceUserRole, Conferences::ConferenceInvite, Conferences::MediaLink, Conferences::Partner, Conferences::RegistrationType, Debates::Debate, Elections::Answer, Elections::Election, Elections::Question, Initiative, InitiativesSettings, Meetings::Agenda, Meetings::AgendaItem, Meetings::Invite, Meetings::Meeting, Moderation, Newsletter, OAuthApplication, Organization, Pages::Page, ParticipatoryProcess, ParticipatoryProcessStep, ParticipatoryProcessType, ParticipatoryProcessUserRole, Proposals::CollaborativeDraft, Proposals::ParticipatoryText, Proposals::Proposal, Proposals::ProposalNote, Proposals::ValuationAssignment, Scope, Sortitions::Sortition, StaticPage, UserBaseEntity, UserModeration, Votings::Census::Dataset, Votings::MonitoringCommitteeMember, Votings::PollingOfficer, Votings::PollingStation, Votings::Voting
- 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