diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-07 17:45:32 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-01-07 17:45:32 -0800 |
commit | 5ea130943eb27586272ecebb060ff1475cadbed6 (patch) | |
tree | 6a76d2402f5101f2b1ca3d1543a2105a54807d3c /actionpack/lib | |
parent | 1ddf17dff0cb21c9e13842af82cfbd0c22c38e62 (diff) | |
download | rails-5ea130943eb27586272ecebb060ff1475cadbed6.tar.gz rails-5ea130943eb27586272ecebb060ff1475cadbed6.tar.bz2 rails-5ea130943eb27586272ecebb060ff1475cadbed6.zip |
Fixed that fragment caching should return a cache hit as html_safe (or it would all just get escaped) [DHH]
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/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 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 |