We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c10fd commit 25e2e15Copy full SHA for 25e2e15
lib/safe_yaml/load.rb
@@ -4,7 +4,7 @@
4
# This needs to be defined up front in case any internal classes need to base
5
# their behavior off of this.
6
module SafeYAML
7
- YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : "syck"
+ YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : (defined?(Psych) && YAML == Psych ? "psych" : "syck")
8
end
9
10
require "safe_yaml/libyaml_checker"
0 commit comments