Handle ActionController::Parameters in CustomersDot for Rails 7.2 Compatibility
From discussion https://gitlab.com/gitlab-org/customers-gitlab-com/-/commit/bc3638f0b758bf8dc70b5122ab8f9a9aae68e667#note_2095934480.
In Rails 7.2, passing ActionController::Parameters to layers outside of the controller will be deprecated, as comparison between ActionController::Parameters and Hash has been removed. This impacts validation and makes it essential to handle parameters properly within the controller layer to avoid forwarding raw input downstream without validation.
For example, in CustomersDot, the current usage of ActionController::Parameters in files are affected by this change
- https://gitlab.com/gitlab-org/customers-gitlab-com/-/blob/06569fbccd4abf70d49bc188657b1071c544cd26/app/controllers/trials_controller.rb#L123-125
- https://gitlab.com/gitlab-org/customers-gitlab-com/-/blob/ed4aef86affcb6f7440d8b2fc130897ebecfd7a5/app/controllers/subscriptions_controller.rb#L129
- etc
We should investigate and refactor such usages to ensure that parameters are properly handled within the controller.
This issue can be tracked as a part of ensuring compatibility with Rails 7.2. We may want to consider creating an Epic to group all similar issues related to the deprecation.