No need to override the to_yaml method in ActiveSupporte::SafeBuffer

上级 d8ed247c
......@@ -136,11 +136,6 @@ def encode_with(coder)
coder.represent_scalar nil, to_str
end
def to_yaml(*args)
return super() if !YAML::ENGINE.syck?
to_str.to_yaml(*args)
end
UNSAFE_STRING_METHODS.each do |unsafe_method|
if 'String'.respond_to?(unsafe_method)
class_eval <<-EOT, __FILE__, __LINE__ + 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册