Module: ViewComponent::RenderToStringMonkeyPatch

Defined in:
lib/view_component/render_to_string_monkey_patch.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

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



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

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