diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 14:14:16 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2012-01-04 14:14:16 -0300 |
commit | ae7dcb4bec3dd274c8773503bc68513c01dae6ff (patch) | |
tree | 16020bc45761e9a5651624d47e5628fa31ab342b | |
parent | d8ed247c7f11b1ca4756134e145d2ec3bfeb8eaf (diff) | |
download | rails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.tar.gz rails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.tar.bz2 rails-ae7dcb4bec3dd274c8773503bc68513c01dae6ff.zip |
No need to override the to_yaml method in ActiveSupporte::SafeBuffer
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 5 |
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 |