From 5ea130943eb27586272ecebb060ff1475cadbed6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 7 Jan 2010 17:45:32 -0800 Subject: Fixed that fragment caching should return a cache hit as html_safe (or it would all just get escaped) [DHH] --- actionpack/lib/action_controller/caching/fragments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb index a0c5ed797e..806e6a1750 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 fragment_exist?(name,options) - buffer.concat(read_fragment(name, options)) + buffer.concat(read_fragment(name, options).html_safe!) else pos = buffer.length block.call -- cgit v1.2.3