method

cache_fragment

rails latest stable - Class: ActionView::TemplateHandlers::RJS

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

cache_fragment(block, name = {}, options = nil)
public

No documentation available.

# File actionpack/lib/action_view/template_handlers/rjs.rb, line 15
      def cache_fragment(block, name = {}, options = nil) #:nodoc:
        @view.fragment_for(block, name, options) do
          begin
            debug_mode, ActionView::Base.debug_rjs = ActionView::Base.debug_rjs, false
            eval('page.to_s', block.binding)
          ensure
            ActionView::Base.debug_rjs = debug_mode
          end
        end
      end