vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb in radiant-0.6.9 vs vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb in radiant-0.7.0

- old
+ new

@@ -29,11 +29,12 @@ # <% cache do %> # Topics: # <%= render :partial => "topics", :collection => @topic_list %> # <i>Topics listed alphabetically</i> # <% end %> - def cache(name = {}, &block) - @controller.cache_erb_fragment(block, name) + def cache(name = {}, options = nil, &block) + handler = Template.handler_class_for_extension(current_render_extension.to_sym) + handler.new(@controller).cache_fragment(block, name, options) end end end end