From ae7dcb4bec3dd274c8773503bc68513c01dae6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 4 Jan 2012 14:14:16 -0300 Subject: [PATCH] No need to override the to_yaml method in ActiveSupporte::SafeBuffer --- .../lib/active_support/core_ext/string/output_safety.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 4e5675cc8de9d..73aa7dd89a533 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -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