Commit 7e2a6709 authored by Jasper Maes's avatar Jasper Maes

Fix several ActionController::Parameters deprecations

parent c441a155
...@@ -86,7 +86,7 @@ class Groups::EpicsController < Groups::ApplicationController ...@@ -86,7 +86,7 @@ class Groups::EpicsController < Groups::ApplicationController
end end
def update_service def update_service
::Epics::UpdateService.new(@group, current_user, epic_params) ::Epics::UpdateService.new(@group, current_user, epic_params.to_h)
end end
def finder_type def finder_type
......
...@@ -29,7 +29,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController ...@@ -29,7 +29,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController
result = SoftwareLicensePolicies::CreateService.new( result = SoftwareLicensePolicies::CreateService.new(
@project, @project,
current_user, current_user,
software_license_policies_params software_license_policies_params.to_h
).execute ).execute
if result[:status] == :success if result[:status] == :success
...@@ -52,7 +52,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController ...@@ -52,7 +52,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController
result = SoftwareLicensePolicies::UpdateService.new( result = SoftwareLicensePolicies::UpdateService.new(
@project, @project,
current_user, current_user,
software_license_policies_params software_license_policies_params.to_h
).execute(@software_license_policy) ).execute(@software_license_policy)
if result[:status] == :success if result[:status] == :success
......
---
title: Fix several ActionController::Parameters deprecations
merge_request: 9347
author: Jasper Maes
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment