aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/output_safety.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-03-11 18:37:28 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-11 18:37:28 -0800
commitf10631e13d373523c1ede9c73a5d7eb2e0529a27 (patch)
tree30b66985b3a304443b9b839e0639ff7887e23bf7 /activesupport/lib/active_support/core_ext/string/output_safety.rb
parent5a7f7928a60749095dd890abfceff45a9912b8d2 (diff)
downloadrails-f10631e13d373523c1ede9c73a5d7eb2e0529a27.tar.gz
rails-f10631e13d373523c1ede9c73a5d7eb2e0529a27.tar.bz2
rails-f10631e13d373523c1ede9c73a5d7eb2e0529a27.zip
Be sure to pass through args to to_yaml
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/output_safety.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/string/output_safety.rb4
1 files changed, 2 insertions, 2 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 3a49cd288b..af46ae10d6 100644
--- a/activesupport/lib/active_support/core_ext/string/output_safety.rb
+++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -93,8 +93,8 @@ module ActiveSupport #:nodoc:
''.replace(self)
end
- def to_yaml
- as_str.to_yaml
+ def to_yaml(*args)
+ as_str.to_yaml(*args)
end
end
end