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

[#58865] fixed some rubocop issues

Eric Schubert61108493c16b
diff --git a/app/models/custom_value.rb b/app/models/custom_value.rb
index 8a2da3ce928..60e6f317e01 100644
--- a/app/models/custom_value.rb
+++ b/app/models/custom_value.rb
@@ -59,7 +59,7 @@ class CustomValue < ApplicationRecord
def strategy
@strategy ||= begin
format = 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)
end
end
diff --git a/lib/custom_field_form_builder.rb b/lib/custom_field_form_builder.rb
index 2801f9a3043..22a7b9b65f9 100644
--- a/lib/custom_field_form_builder.rb
+++ b/lib/custom_field_form_builder.rb
@@ -57,6 +57,7 @@ class CustomFieldFormBuilder < TabularFormBuilder
private
+ # rubocop:disable Metrics/AbcSize
def custom_field_input(options = {})
field = custom_field.attribute_name
@@ -80,6 +81,8 @@ class CustomFieldFormBuilder < TabularFormBuilder
end
end
+ # rubocop:enable Metrics/AbcSize
+
def custom_field_input_list(field, input_options)
customized = Array(custom_value).first&.customized
possible_options = custom_field.possible_values_options(customized)