lib/rails/boost/jbuilder/render_path.rb
# This method mirrors the Jbuilder#_scope method.  This builder object
# handles nesting by resetting its state as it enters each new block, and
# restoring the original state as it exits the block.  This method follows
# this pattern for the state of the render_path attribute.  The caller
# passes in the new value of the attribute.
This method mirrors the Jbuilder#_scope method.  This builder object
handles nesting by resetting its state as it enters each new block, and
restoring the original state as it exits the block.  This method follows
this pattern for the state of the render_path attribute.  The caller
passes in the new value of the attribute.
This method mirrors the Jbuilder#_scope method . This builder object handles nesting by resetting its state as it enters each new block and restoring the original state as it exits the block . This method follows this pattern for the state of the render_path attribute . The caller passes in the new value of the attribute .
def _render_path_scope(new_path)
        parent_render_path = render_path
        self.render_path = new_path
        yield
      ensure
        self.render_path = parent_render_path
      end
def _render_path_scope ( new_path ) parent_render_path = render_path self . render_path = new_path yield ensure self . render_path = parent_render_path end
This method mirrors the Jbuilder#_scope method.
This method mirrors the Jbuilder#_scope method .
new_path