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
[#58865] fixed some rubocop issues
Eric Schubert61108493c16b
diff --git a/app/models/custom_value.rb b/app/models/custom_value.rbindex 8a2da3ce928..60e6f317e01 100644--- a/app/models/custom_value.rb+++ b/app/models/custom_value.rb@@ -59,7 +59,7 @@ class CustomValue < ApplicationRecorddef strategy@strategy ||= beginformat = custom_field&.field_format || "empty"- OpenProject::CustomFieldFormat.find_by(name: format).formatter.new(self) # rubocop:disable Rails/DynamicFindBy+ OpenProject::CustomFieldFormat.find_by(name: format).formatter.new(self)endenddiff --git a/lib/custom_field_form_builder.rb b/lib/custom_field_form_builder.rbindex 2801f9a3043..22a7b9b65f9 100644--- a/lib/custom_field_form_builder.rb+++ b/lib/custom_field_form_builder.rb@@ -57,6 +57,7 @@ class CustomFieldFormBuilder < TabularFormBuilderprivate+ # rubocop:disable Metrics/AbcSizedef custom_field_input(options = {})field = custom_field.attribute_name@@ -80,6 +81,8 @@ class CustomFieldFormBuilder < TabularFormBuilderendend+ # rubocop:enable Metrics/AbcSize+def custom_field_input_list(field, input_options)customized = Array(custom_value).first&.customizedpossible_options = custom_field.possible_values_options(customized)