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
Readd missing expires_in param
Oliver Günther765a8e781412
diff --git a/app/models/attachment.rb b/app/models/attachment.rbindex 0338f1de5dd..dac42bca9b8 100644--- a/app/models/attachment.rb+++ b/app/models/attachment.rb@@ -69,7 +69,7 @@ class Attachment < ApplicationRecord# Returns an URL if the attachment is stored in an external (fog) attachment storage# or nil otherwise.def external_url(expires_in: nil)- url = URI.parse file.download_url(external_url_options) # returns a path if local+ url = URI.parse file.download_url(external_url_options(expires_in: expires_in)) # returns a path if localurl if url.hostrescue URI::InvalidURIError