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
unify procs and lambdas in module menus
Ivan Kuchin0b8308e419b9
diff --git a/modules/github_integration/lib/open_project/github_integration/engine.rb b/modules/github_integration/lib/open_project/github_integration/engine.rbindex 10b54640fa8..9758ea904f9 100644--- a/modules/github_integration/lib/open_project/github_integration/engine.rb+++ b/modules/github_integration/lib/open_project/github_integration/engine.rb@@ -56,7 +56,7 @@ module OpenProject::GithubIntegration::Redmine::MenuManager.map(:admin_menu) do |menu|menu.push :admin_github_integration,{ controller: "/deploy_targets", action: "index" },- if: Proc.new { OpenProject::FeatureDecisions.deploy_targets_active? && User.current.admin? },+ if: ->(_) { OpenProject::FeatureDecisions.deploy_targets_active? && User.current.admin? },caption: :label_github_integration,icon: "mark-github"enddiff --git a/modules/storages/lib/open_project/storages/engine.rb b/modules/storages/lib/open_project/storages/engine.rbindex c98483d74a8..5cb7411a33b 100644--- a/modules/storages/lib/open_project/storages/engine.rb+++ b/modules/storages/lib/open_project/storages/engine.rb@@ -188,21 +188,21 @@ module OpenProject::Storagesmenu :admin_menu,:files,{ controller: "/storages/admin/storages", action: :index },- if: Proc.new { User.current.admin? },+ if: ->(_) { User.current.admin? },caption: :project_module_storages,icon: "file-directory"menu :admin_menu,:external_file_storages,{ controller: "/storages/admin/storages", action: :index },- if: Proc.new { User.current.admin? },+ if: ->(_) { User.current.admin? },caption: :external_file_storages,parent: :filesmenu :admin_menu,:attachments,{ controller: "/admin/settings/attachments_settings", action: :show },- if: Proc.new { User.current.admin? },+ if: ->(_) { User.current.admin? },caption: :"attributes.attachments",parent: :files