diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-11 17:08:33 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-11 17:42:29 -0800 |
commit | 1f6c5677ad18a2d49866100b043b82bd030875d4 (patch) | |
tree | 6da58aa4af0ca4ccd8453d54efc9e0338e4f1002 /activesupport/lib | |
parent | 698312de872b5410fa523f5164ef10518d8c92e9 (diff) | |
download | rails-1f6c5677ad18a2d49866100b043b82bd030875d4.tar.gz rails-1f6c5677ad18a2d49866100b043b82bd030875d4.tar.bz2 rails-1f6c5677ad18a2d49866100b043b82bd030875d4.zip |
OutputBuffer#to_yaml should return string yaml, not some custom class dump
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 4 |
1 files changed, 4 insertions, 0 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 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 |