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

Autocorrect Rubocop offenses

Alexander Brandon Colesb2cebe11cce2
diff --git a/modules/bim/app/helpers/ifc_models_helper.rb b/modules/bim/app/helpers/ifc_models_helper.rb
index c3b463d3326..c22a26f856a 100644
--- a/modules/bim/app/helpers/ifc_models_helper.rb
+++ b/modules/bim/app/helpers/ifc_models_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module IfcModelsHelper
def ifc_model_data_object(all_models, shown_models)
all_converted_models = converted_ifc_models(all_models)
@@ -41,6 +43,6 @@ module IfcModelsHelper
end
def ifc_model_xkt_attachment_ids(models)
- models.map { |model| [model.id, model.xkt_attachment.id] }.to_h
+ models.to_h { |model| [model.id, model.xkt_attachment.id] }
end
end