lib/active_view/presenter/presenter.rb
# The default implementation simply yields the model for manipulation before
# rendering.
The default implementation simply yields the model for manipulation before
rendering.
The default implementation simply yields the model for manipulation before rendering .
def run_block
      @_block_content = nil
      unless block.blank?
        @_block_content = if view.parent.present?
                            capture(view, &block)
                          else
                            yield(view)
                          end
      end
    end
def run_block @_block_content = nil unless block . blank? @_block_content = if view . parent . present? capture ( view , & block ) else yield ( view ) end end end
The default implementation simply yields the model for manipulation before
rendering.
The default implementation simply yields the model for manipulation before rendering .
## We've been called directly from a controller.