Module: RenderKit::RenderingHelperMonkeyPatch

Defined in:
lib/render_kit/rendering_helper_monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#render(options = {}, locals = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/render_kit/rendering_helper_monkey_patch.rb', line 7

def render(options = {}, locals = {}, &)
  if renderable = RenderKit::RenderableRegistry.get_renderables(options)
    renderable.new(locals).render_in(self, &)
  else
    super
  end
end