Sha256: 11ebd4733069eb7ce47458937bd10340a5df6bab47cac5400acb8f86276b4a02

Contents?: true

Size: 281 Bytes

Versions: 59

Compression:

Stored size: 281 Bytes

Contents

# frozen_string_literal: true

module ViewComponent
  module RenderToStringMonkeyPatch # :nodoc:
    def render_to_string(options = {}, args = {})
      if options.respond_to?(:render_in)
        options.render_in(view_context)
      else
        super
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
view_component-3.5.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.4.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.3.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.2.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.1.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc6 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc5 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc4 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc3 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc2 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.0.0.rc1 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.82.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.81.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.80.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.79.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.78.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.77.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.76.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.75.0 lib/view_component/render_to_string_monkey_patch.rb