1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

html_safe.to_str makes no sense

This commit is contained in:
Santiago Pastorino 2011-01-11 18:45:34 -02:00
parent 7d4d745730
commit a61e3acef2

View file

@ -59,7 +59,7 @@ module ActionController #:nodoc:
key = fragment_cache_key(key)
instrument_fragment_cache :write_fragment, key do
content = content.html_safe.to_str if content.respond_to?(:html_safe)
content = content.to_str
cache_store.write(key, content, options)
end
content