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
Use expect syntax for strong parameters and sort actions
Jan Sandbrink0a40d07b8c31
diff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex 17d61b14b4e..38968ad8dca 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -82,6 +82,10 @@ class Storages::Admin::StoragesController < ApplicationControllerdef upsell; end+ def edit+ @wizard = storage_wizard(@storage)+ end+def createservice_result = Storages::Storages::CreateService.new(@@ -112,10 +116,6 @@ class Storages::Admin::StoragesController < ApplicationControllerendend- def edit- @wizard = storage_wizard(@storage)- end-def edit_hostupdate_via_turbo_stream(component: Storages::Admin::Forms::GeneralInfoFormComponent.new(@storage)@@ -242,20 +242,21 @@ class Storages::Admin::StoragesController < ApplicationController# update parameters are correctly set.def permitted_storage_params(model_parameter_name = storage_provider_parameter_name)params- .require(model_parameter_name)- .permit("name",- "provider_type",- "host",- "authentication_method",- "audience_configuration",- "storage_audience",- "storage_scope",- "oauth_client_id",- "oauth_client_secret",- "tenant_id",- "drive_id",- "automatic_management_enabled",- "health_notifications_enabled")+ .expect(model_parameter_name => %i[+ audience_configuration+ authentication_method+ automatic_management_enabled+ drive_id+ health_notifications_enabled+ host+ name+ oauth_client_id+ oauth_client_secret+ provider_type+ storage_audience+ storage_scope+ tenant_id+ ])enddef storage_provider_parameter_name