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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
extract method
ulfertsfb5faab6aa5a
diff --git a/app/models/journable/with_historic_attributes.rb b/app/models/journable/with_historic_attributes.rbindex bdcb6c39554..b5d3018d389 100644--- a/app/models/journable/with_historic_attributes.rb+++ b/app/models/journable/with_historic_attributes.rb@@ -129,7 +129,7 @@ class Journable::WithHistoricAttributes < SimpleDelegatordef attributes_by_timestamp@attributes_by_timestamp ||= Hash.new do |h, t|attributes = if include_only_changed_attributes- changes_at_timestamp(t)&.transform_values(&:last)+ changed_attributes_at_timestamp(t)elsehistoric_attributes_at(t)end@@ -221,5 +221,9 @@ class Journable::WithHistoricAttributes < SimpleDelegator.changes(__getobj__, historic_journable)end+ def changed_attributes_at_timestamp(timestamp)+ changes_at_timestamp(timestamp)&.transform_values(&:last)+ end+class NotImplemented < StandardError; endend