Sha256: 11ebd4733069eb7ce47458937bd10340a5df6bab47cac5400acb8f86276b4a02

Contents?: true

Size: 281 Bytes

Versions: 58

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

58 entries across 58 versions & 2 rubygems

Version Path
view_component-3.20.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.19.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.18.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.17.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.16.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.15.1 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.15.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.14.0 lib/view_component/render_to_string_monkey_patch.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/view_component-2.83.0/lib/view_component/render_to_string_monkey_patch.rb
view_component-3.13.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.12.1 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.12.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.11.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.10.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-2.83.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.9.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.8.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.7.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.6.0 lib/view_component/render_to_string_monkey_patch.rb
view_component-3.5.0 lib/view_component/render_to_string_monkey_patch.rb