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

lint(codestyle): better alias usage

as-op1543be9d407b
diff --git a/app/models/work_package/pdf_export/common/attachments.rb b/app/models/work_package/pdf_export/common/attachments.rb
index 365865c41a3..2a1574f8618 100644
--- a/app/models/work_package/pdf_export/common/attachments.rb
+++ b/app/models/work_package/pdf_export/common/attachments.rb
@@ -72,6 +72,6 @@ module WorkPackage::PDFExport::Common::Attachments
def attachment_by_api_content_src(work_package, src)
# find attachment by api-path
- work_package.attachments.detect { |a| api_url_helpers.attachment_content(a.id) == src }
+ work_package.attachments.find { |a| api_url_helpers.attachment_content(a.id) == src }
end
end