Module: ViewComponent::RenderComponentHelper

Defined in:
lib/view_component/render_component_helper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#render_component(component, &block) ⇒ Object



5
6
7
8
# File 'lib/view_component/render_component_helper.rb', line 5

def render_component(component, &block)
  component.set_original_view_context(__vc_original_view_context) if is_a?(ViewComponent::Base)
  component.render_in(self, &block)
end