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
add example for MultiKeyHash
Ivan Kuchin018d9581fe4f
diff --git a/lib/open_project/multi_key_hash.rb b/lib/open_project/multi_key_hash.rbindex d816870cbca..418364b136c 100644--- a/lib/open_project/multi_key_hash.rb+++ b/lib/open_project/multi_key_hash.rb@@ -29,7 +29,13 @@#++module OpenProject- # Utility class to expand hash keys that are arrays into multiple keys+ # Utility class to expand hash keys that are arrays into multiple keys.+ #+ # Example usage:+ # MultiKeyHash.expand(+ # %w[key1 key2] => "value for both key1 and key2",+ # "key3" => "value for key3"+ # )module MultiKeyHashdef self.expand(**hash)hash.each_with_object({}) do |(keys, value), expanded|