Skip to content

Remove brackets around keyword args for Ruby 3 compatibility

Steve Abrams requested to merge ruby3-deprecation-updates into master

What does this MR do and why?

In Ruby 3, keyword arguments should not be passed in a hash unless they are passed with the splat ** operator. This MR removes the hash brackets from a location identified after seeing the following warnings in the logs:

Screenshot_2023-04-25_at_3.25.22_PM

Author Check-list

  • [-] Has documentation been updated?

Related to gitlab-com/gl-infra/delivery#2864 (closed)

Edited by Steve Abrams

Merge request reports