Module: Decidim::Loggable

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