class ActionView::Renderer
def render_partial_to_object(context, options, &block) # :nodoc:
Experimental RBS support (using type sampling data from the type_fusion
project).
type ActionView__Renderer_render_partial_to_object_context = #<Class:0x0000000115390d30> | #<Class:0x000000010dc1f968> | #<Class:0x00000001077afb40> | #<Class:0x00000001129d5018> | #<Class:0x0000000112ef7460> | #<Class:0x0000000117253b78> def render_partial_to_object: (ActionView__Renderer_render_partial_to_object_context context, Hash options, ) -> ActionView::AbstractRenderer::RenderedTemplate
This signature was generated using 6 samples from 1 application.
def render_partial_to_object(context, options, &block) # :nodoc: partial = options[:partial] if String === partial collection = collection_from_options(options) if collection # Collection + Partial renderer = CollectionRenderer.new(@lookup_context, options) renderer.render_collection_with_partial(collection, partial, context, block) else if options.key?(:object) # Object + Partial renderer = ObjectRenderer.new(@lookup_context, options) renderer.render_object_with_partial(options[:object], partial, context, block) else # Partial renderer = PartialRenderer.new(@lookup_context, options) renderer.render(partial, context, block) end end else collection = collection_from_object(partial) || collection_from_options(options) if collection # Collection + Derived Partial renderer = CollectionRenderer.new(@lookup_context, options) renderer.render_collection_derive_partial(collection, context, block) else # Object + Derived Partial renderer = ObjectRenderer.new(@lookup_context, options) renderer.render_object_derive_partial(partial, context, block) end end end