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
1 changed files with 2 additions and 0 deletions

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