aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-19 18:56:06 -0700
committerwycats <wycats@gmail.com>2010-03-19 18:56:06 -0700
commitf868c2afa9190604015b6c5fd3bcc58371f03570 (patch)
treef620ef3aea08998cca76ab73730b28acb0bd5133
parente1c030edd8362bceab287523fba7ec6a76aa9beb (diff)
downloadrails-f868c2afa9190604015b6c5fd3bcc58371f03570.tar.gz
rails-f868c2afa9190604015b6c5fd3bcc58371f03570.tar.bz2
rails-f868c2afa9190604015b6c5fd3bcc58371f03570.zip
response_body is an Array in 1.9, so an Array was being pushed onto the cache
-rw-r--r--actionpack/lib/action_controller/caching/actions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/caching/actions.rb b/actionpack/lib/action_controller/caching/actions.rb
index e89bf64026..43ddf6435a 100644
--- a/actionpack/lib/action_controller/caching/actions.rb
+++ b/actionpack/lib/action_controller/caching/actions.rb
@@ -92,6 +92,8 @@ module ActionController #:nodoc:
return unless caching_allowed?
content = response_body
+ content = content.join if content.is_a?(Array)
+
write_fragment(name, content, options)
end