Revert "Make sure that we don't perform in-place mutation on SafeBuffer string"

This reverts commit 317e7c829d.
This commit is contained in:
Santiago Pastorino and José Ignacio Costa
2011-06-10 23:08:58 -03:00
parent e88508eb20
commit 41b73fe033
2 changed files with 0 additions and 8 deletions

View File

@@ -219,9 +219,6 @@ module ActionView
method_name = self.method_name
if source.encoding_aware?
# Avoid performing in-place mutation for SafeBuffer
@source = source.to_str if source.html_safe?
# Look for # encoding: *. If we find one, we'll encode the
# String in that encoding, otherwise, we'll use the
# default external encoding.

View File

@@ -173,10 +173,5 @@ class TestERBTemplate < ActiveSupport::TestCase
ensure
silence_warnings { Encoding.default_external = old }
end
def test_render_inline_safebuffer_should_not_raise_error
@template = new_template("Hello".html_safe)
render
end
end
end