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

response_body is an Array in 1.9, so an Array was being pushed onto the cache

This commit is contained in:
wycats 2010-03-19 18:56:06 -07:00
parent e1c030edd8
commit f868c2afa9

View file

@ -92,6 +92,8 @@ module ActionController #:nodoc:
return unless caching_allowed? return unless caching_allowed?
content = response_body content = response_body
content = content.join if content.is_a?(Array)
write_fragment(name, content, options) write_fragment(name, content, options)
end end