Module: ViewComponent::RenderingMonkeyPatch

Defined in:
lib/view_component/rendering_monkey_patch.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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



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

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