Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Be sure to pass through args to to_yaml

  • Loading branch information...
commit 40c393cb84206380c76dd2f5429215d32b09bc92 1 parent eed8a88
@jeremy jeremy authored
View
4 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -109,8 +109,8 @@ def as_str
''.replace(self)
end
- def to_yaml
- as_str.to_yaml
+ def to_yaml(*args)
+ as_str.to_yaml(*args)
end
end
end
View
2  activesupport/test/core_ext/string_ext_test.rb
@@ -501,6 +501,6 @@ def to_s
end
test 'emits normal string yaml' do
- assert_equal 'foo'.to_yaml, 'foo'.html_safe.to_yaml
+ assert_equal 'foo'.to_yaml, 'foo'.html_safe.to_yaml(:foo => 1)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.