From 1f6c5677ad18a2d49866100b043b82bd030875d4 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 11 Mar 2010 17:08:33 -0800 Subject: OutputBuffer#to_yaml should return string yaml, not some custom class dump --- activesupport/lib/active_support/core_ext/string/output_safety.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib/active_support') 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 567ba00b0d..c55b471986 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -88,6 +88,10 @@ module ActiveSupport #:nodoc: def to_s self end + + def to_yaml + "".replace(self).to_yaml + end end end -- cgit v1.2.3