Skip to content
代码片段 群组 项目
未验证 提交 457421f8 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Fix deprecated interface for YAML.safe_load

Passing in the permitted classes as the second argument was deprecated
in Psych 3 (https://github.com/ruby/psych/pull/378) and removed in
Psych 4 (https://github.com/ruby/psych/pull/487).

Ruby 3.1 ships with Psych 4, so to make the code work for Ruby 2.7 and
up, use the `permitted_classes` keyword argument.

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/396231

Changelog: changed
上级 e521622c
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册