diff options
-rw-r--r-- | actionpack/lib/action_controller/caching/actions.rb | 2 |
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 |