app/models/decidim/accountability/timeline_entry.rb in decidim-accountability-0.26.10 vs app/models/decidim/accountability/timeline_entry.rb in decidim-accountability-0.27.0.rc1

- old
+ new

@@ -4,11 +4,17 @@ module Accountability # The data store for a TimelineEntry for a Result in the Decidim::Accountability component. # It stores a date, and localized description. class TimelineEntry < Accountability::ApplicationRecord include Decidim::TranslatableResource + include Decidim::Traceable + translatable_fields :title translatable_fields :description belongs_to :result, foreign_key: "decidim_accountability_result_id", class_name: "Decidim::Accountability::Result", inverse_of: :timeline_entries + + def self.log_presenter_class_for(_log) + Decidim::Accountability::AdminLog::TimelineEntryPresenter + end end end end