aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 14:14:16 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 14:14:16 -0300
commitae7dcb4bec3dd274c8773503bc68513c01dae6ff (patch)
tree16020bc45761e9a5651624d47e5628fa31ab342b /activesupport/lib/active_support/core_ext
parentd8ed247c7f11b1ca4756134e145d2ec3bfeb8eaf (diff)
downloadrails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.tar.gz
rails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.tar.bz2
rails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.zip
No need to override the to_yaml method in ActiveSupporte::SafeBuffer
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb5
1 files changed, 0 insertions, 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 4e5675cc8d..73aa7dd89a 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 @@ module ActiveSupport #:nodoc:
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