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
end
def update_service
::Epics::UpdateService.new(@group, current_user, epic_params)
::Epics::UpdateService.new(@group, current_user, epic_params.to_h)
end
def finder_type
......
......@@ -29,7 +29,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController
result = SoftwareLicensePolicies::CreateService.new(
@project,
current_user,
software_license_policies_params
software_license_policies_params.to_h
).execute
if result[:status] == :success
......@@ -52,7 +52,7 @@ class Projects::ManagedLicensesController < Projects::ApplicationController
result = SoftwareLicensePolicies::UpdateService.new(
@project,
current_user,
software_license_policies_params
software_license_policies_params.to_h
).execute(@software_license_policy)
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