+1
-1
lines changedFilter options
+1
-1
lines changed Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def clean_yaml(yaml)
30
30
def valid_yaml?(obj)
31
31
require 'yaml'
32
32
begin
33
-
if defined?(YAML.unsafe_load)
33
+
if YAML.respond_to?(:unsafe_load)
34
34
YAML.unsafe_load(obj)
35
35
else
36
36
YAML.load(obj)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4