Should not monkey-patch rails ActionController::Parameters

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The problem is that ActionController::Parameters::PERMITTED_SCALAR_TYPES is a hard-coded constant that we cannot add our own values to.

Maybe this could be a patch to Rails.

Introduced by: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8299

Previously: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/997

Edited by 🤖 GitLab Bot 🤖