[ruby/yaml] Compatibility for Psych 4
https://github.com/ruby/yaml/commit/b4b72ae0b4
This commit is contained in:
parent
5c1b7633fc
commit
f757a5d3ce
@ -65,7 +65,7 @@ class YAML::Store < PStore
|
|||||||
end
|
end
|
||||||
|
|
||||||
def load(content)
|
def load(content)
|
||||||
table = YAML.unsafe_load(content)
|
table = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(content) : YAML.load(content)
|
||||||
if table == false
|
if table == false
|
||||||
{}
|
{}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user