From a42d272d299a9a7f43f6d6b28eb713886433223c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Pastorino=20and=20Jos=C3=A9=20Ignacio=20Costa?= Date: Mon, 1 Feb 2010 13:05:05 -0200 Subject: [PATCH] fragment caching TypeError can't modify frozen object fixed --- .../lib/action_controller/caching/fragments.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb index 9dfca72..fdc7b3e 100644 --- a/actionpack/lib/action_controller/caching/fragments.rb +++ b/actionpack/lib/action_controller/caching/fragments.rb @@ -37,7 +37,7 @@ module ActionController #:nodoc: def fragment_for(buffer, name = {}, options = nil, &block) #:nodoc: if perform_caching if cache = read_fragment(name, options) - buffer.concat(cache.html_safe!) + buffer.concat(cache.dup.html_safe!) else pos = buffer.length block.call -- 1.6.5