Use safe_concat instead of trying to html_safe! what might be a frozen string

This commit is contained in:
David Heinemeier Hansson 2010-01-10 18:13:43 -08:00
parent d2e7c1b97d
commit 5ddc597066

@ -36,8 +36,8 @@ def fragment_cache_key(key)
def fragment_for(buffer, name = {}, options = nil, &block) #:nodoc:
if perform_caching
if fragment_exist?(name,options)
buffer.concat(read_fragment(name, options).html_safe!)
if fragment_exist?(name, options)
buffer.safe_concat(read_fragment(name, options))
else
pos = buffer.length
block.call