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

rename method

ulferts74fbac065bf0
diff --git a/app/models/journable/with_historic_attributes.rb b/app/models/journable/with_historic_attributes.rb
index b5d3018d389..d705ed56c9d 100644
--- a/app/models/journable/with_historic_attributes.rb
+++ b/app/models/journable/with_historic_attributes.rb
@@ -131,7 +131,7 @@ class Journable::WithHistoricAttributes < SimpleDelegator
attributes = if include_only_changed_attributes
changed_attributes_at_timestamp(t)
else
- historic_attributes_at(t)
+ historic_attributes_at_timestamp(t)
end
h[t] = attributes ? Hashie::Mash.new(attributes) : nil
@@ -200,7 +200,7 @@ class Journable::WithHistoricAttributes < SimpleDelegator
private
- def historic_attributes_at(timestamp)
+ def historic_attributes_at_timestamp(timestamp)
historic_journable = at_timestamp(Timestamp.parse(timestamp))
return unless historic_journable