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

Rubocop

Klaus Zanders57f870d2e752
diff --git a/app/controllers/projects/queries_controller.rb b/app/controllers/projects/queries_controller.rb
index 780559dd2ae..7d2d17c7103 100644
--- a/app/controllers/projects/queries_controller.rb
+++ b/app/controllers/projects/queries_controller.rb
@@ -72,7 +72,7 @@ class Projects::QueriesController < ApplicationController
render_result(call, success_i18n_key: "lists.update.success", error_i18n_key: "lists.update.failure")
end
- def toggle_public
+ def toggle_public # rubocop:disable Metrics/AbcSize
to_be_public = [email protected]?
i18n_key = to_be_public ? "lists.publish" : "lists.unpublish"