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:
parent
e1c030edd8
commit
f868c2afa9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue