lib/view_component/rendering_monkey_patch.rb



# frozen_string_literal: true

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