lib/action_view/renderer/renderer.rb in actionview-6.1.7.10 vs lib/action_view/renderer/renderer.rb in actionview-7.0.0.alpha1

- old
+ new

@@ -42,27 +42,27 @@ StreamingTemplateRenderer.new(@lookup_context).render(context, options) end end # Direct access to template rendering. - def render_template(context, options) #:nodoc: + def render_template(context, options) # :nodoc: render_template_to_object(context, options).body end # Direct access to partial rendering. - def render_partial(context, options, &block) #:nodoc: + def render_partial(context, options, &block) # :nodoc: render_partial_to_object(context, options, &block).body end def cache_hits # :nodoc: @cache_hits ||= {} end - def render_template_to_object(context, options) #:nodoc: + def render_template_to_object(context, options) # :nodoc: TemplateRenderer.new(@lookup_context).render(context, options) end - def render_partial_to_object(context, options, &block) #:nodoc: + def render_partial_to_object(context, options, &block) # :nodoc: partial = options[:partial] if String === partial collection = collection_from_options(options) if collection