Module: ViewComponent::RenderMonkeyPatch

Defined in:
lib/view_component/render_monkey_patch.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#render(options = {}, args = {}, &block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/view_component/render_monkey_patch.rb', line 5

def render(options = {}, args = {}, &block)
  if options.respond_to?(:render_in)
    options.render_in(self, &block)
  else
    super
  end
end