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
remove unnecessary hack
ulfertsbb141fc4c2e5
diff --git a/modules/documents/app/models/document.rb b/modules/documents/app/models/document.rbindex 4d796ff856d..1ef71c5f84b 100644--- a/modules/documents/app/models/document.rb+++ b/modules/documents/app/models/document.rb@@ -68,15 +68,4 @@ class Document < ApplicationRecorddef set_default_categoryself.category ||= DocumentCategory.default if new_record?end-- # TODO: This should not be necessary as the Attachments::CreateService in combination- # with acts_as_journalized should touch the document after an attachment has been added.- def updated_at- @updated_at ||= [attachments.maximum(:updated_at), read_attribute(:updated_at)].compact.max- end-- def reload(options = nil)- @updated_at = nil- super- endend