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

Disable Metrics/AbcSize cop in PermittedParams

Alexander Brandon Coles17b3f6cab5e3
diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rb
index c6912e3edbd..5fb114feb0a 100644
--- a/app/models/permitted_params.rb
+++ b/app/models/permitted_params.rb
@@ -356,7 +356,7 @@ class PermittedParams
params.permit(attachments: %i[file description id])["attachments"]
end
- def enumerations
+ def enumerations # rubocop:disable Metrics/AbcSize
acceptable_params = %i[active is_default move_to name reassign_to_i
parent_id custom_field_values reassign_to_id]