Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

sort register_journal_formatter lines and remove duplicate

Ivan Kuchinf009ecb801b6
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 8745b283f4b..bf71c0b9646 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -35,30 +35,28 @@ class Journal < ApplicationRecord
include ::Acts::Journalized::FormatHooks
include Journal::Timestamps
- register_journal_formatter OpenProject::JournalFormatter::Diff
+ register_journal_formatter OpenProject::JournalFormatter::ActiveStatus
+ register_journal_formatter OpenProject::JournalFormatter::AgendaItemDiff
+ register_journal_formatter OpenProject::JournalFormatter::AgendaItemDuration
+ register_journal_formatter OpenProject::JournalFormatter::AgendaItemPosition
+ register_journal_formatter OpenProject::JournalFormatter::AgendaItemTitle
register_journal_formatter OpenProject::JournalFormatter::Attachment
+ register_journal_formatter OpenProject::JournalFormatter::Cause
register_journal_formatter OpenProject::JournalFormatter::CustomField
- register_journal_formatter OpenProject::JournalFormatter::ScheduleManually
+ register_journal_formatter OpenProject::JournalFormatter::Diff
+ register_journal_formatter OpenProject::JournalFormatter::FileLink
register_journal_formatter OpenProject::JournalFormatter::IgnoreNonWorkingDays
- register_journal_formatter OpenProject::JournalFormatter::ActiveStatus
+ register_journal_formatter OpenProject::JournalFormatter::MeetingStartTime
+ register_journal_formatter OpenProject::JournalFormatter::MeetingState
+ register_journal_formatter OpenProject::JournalFormatter::MeetingWorkPackageId
register_journal_formatter OpenProject::JournalFormatter::ProjectStatusCode
- register_journal_formatter OpenProject::JournalFormatter::Template
- register_journal_formatter OpenProject::JournalFormatter::Visibility
+ register_journal_formatter OpenProject::JournalFormatter::ScheduleManually
register_journal_formatter OpenProject::JournalFormatter::SubprojectNamedAssociation
+ register_journal_formatter OpenProject::JournalFormatter::Template
register_journal_formatter OpenProject::JournalFormatter::TimeEntryHours
- register_journal_formatter OpenProject::JournalFormatter::WikiDiff
register_journal_formatter OpenProject::JournalFormatter::TimeEntryNamedAssociation
- register_journal_formatter OpenProject::JournalFormatter::Cause
- register_journal_formatter OpenProject::JournalFormatter::FileLink
- register_journal_formatter OpenProject::JournalFormatter::MeetingStartTime
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemPosition
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemDuration
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemDiff
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemTitle
- register_journal_formatter OpenProject::JournalFormatter::MeetingWorkPackageId
- register_journal_formatter OpenProject::JournalFormatter::MeetingState
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemDiff
- register_journal_formatter OpenProject::JournalFormatter::AgendaItemTitle
+ register_journal_formatter OpenProject::JournalFormatter::Visibility
+ register_journal_formatter OpenProject::JournalFormatter::WikiDiff
# Attributes related to the cause are stored in a JSONB column so we can easily add new relations and related
# attributes without a heavy database migration. Fields will be prefixed with `cause_` but are stored in the JSONB