Skip to content
Snippets Groups Projects
Verified Commit 457421f8 authored by Stan Hu's avatar Stan Hu
Browse files

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 #396231

Changelog: changed
parent e521622c
No related branches found
No related tags found
1 merge request!114389Fix deprecated interface for YAML.safe_load
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment