diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-15 14:41:38 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-15 14:43:52 -0500 |
commit | aca246ab25497bb6787d2e18680e9f73ad13d223 (patch) | |
tree | ad107ae39feb55960a4f6faf084b3ad8bc56cbec /actionpack/lib/action_view/helpers/cache_helper.rb | |
parent | 4f72feb84c25b54f66c7192c788b7fd965f2d493 (diff) | |
download | rails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.gz rails-aca246ab25497bb6787d2e18680e9f73ad13d223.tar.bz2 rails-aca246ab25497bb6787d2e18680e9f73ad13d223.zip |
Get buffer for fragment cache from template's @output_buffer
Diffstat (limited to 'actionpack/lib/action_view/helpers/cache_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/cache_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/cache_helper.rb b/actionpack/lib/action_view/helpers/cache_helper.rb index 2cdbae6e40..64d1ad2715 100644 --- a/actionpack/lib/action_view/helpers/cache_helper.rb +++ b/actionpack/lib/action_view/helpers/cache_helper.rb @@ -32,7 +32,7 @@ module ActionView # <i>Topics listed alphabetically</i> # <% end %> def cache(name = {}, options = nil, &block) - _last_render.handler.new(@controller).cache_fragment(block, name, options) + @controller.fragment_for(output_buffer, name, options, &block) end end end |