Permalink
Browse files

response_body is an Array in 1.9, so an Array was being pushed onto t…

…he cache
  • Loading branch information...
wycats committed Mar 20, 2010
1 parent e1c030e commit f868c2afa9190604015b6c5fd3bcc58371f03570
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_controller/caching/actions.rb
@@ -92,6 +92,8 @@ def _save_fragment(name, options)
return unless caching_allowed?
content = response_body
+ content = content.join if content.is_a?(Array)
+
write_fragment(name, content, options)
end

0 comments on commit f868c2a

Please sign in to comment.