Sha256: dc61b3ba951e50f0f8c0d7e67306ee776788c5f9b15b826279f9ca49420a223a

Contents?: true

Size: 719 Bytes

Versions: 25

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module Decidim
  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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.4 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.9 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.29.0 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.3 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.8 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.29.0.rc4 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.29.0.rc3 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.29.0.rc2 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.29.0.rc1 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.2 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.7 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.1 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.6 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.0 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.5 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.0.rc5 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.28.0.rc4 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.4 app/models/decidim/accountability/timeline_entry.rb
decidim-accountability-0.27.3 app/models/decidim/accountability/timeline_entry.rb