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
refactor: use constant directly
Christophe Bliardc6c0784547d6
diff --git a/modules/storages/app/models/queries/storages/file_links/file_link_query.rb b/modules/storages/app/models/queries/storages/file_links/file_link_query.rbindex cafc0df9841..c7cb544abff 100644--- a/modules/storages/app/models/queries/storages/file_links/file_link_query.rb+++ b/modules/storages/app/models/queries/storages/file_links/file_link_query.rb@@ -35,9 +35,7 @@ class Queries::Storages::FileLinks::FileLinkQuery < Queries::BaseQuery# We need to overwrite the model method, as the standard implementation cannot derive the name from nested# namespaces. See app/models/queries/base_query.rb:31def model- # '.constantize' finds a declared constant with the specified name.- # A NameError is raised, if it is not initialized.- @model ||= '::Storages::FileLink'.constantize+ @model ||= ::Storages::FileLinkendendend