From b0cc8bceea5b397816ef4ae61db8ba723ae2f647 Mon Sep 17 00:00:00 2001 From: Joel Drapper Date: Wed, 18 Oct 2023 01:01:22 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20out=20of=20order=20rendering=20when=20yie?= =?UTF-8?q?lding=20from=20a=20partial=20rendered=20with=20a=20block=20dele?= =?UTF-8?q?gated=20from=20a=20component=E2=80=99s=20content=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/phlex/rails/sgml/overrides.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phlex/rails/sgml/overrides.rb b/lib/phlex/rails/sgml/overrides.rb index 44360692..8badeaf7 100644 --- a/lib/phlex/rails/sgml/overrides.rb +++ b/lib/phlex/rails/sgml/overrides.rb @@ -23,7 +23,7 @@ def render(*args, **kwargs, &block) when Enumerable return super unless renderable.is_a?(ActiveRecord::Relation) else - @_context.target << @_view_context.render(*args, **kwargs, &block) + @_context.target << @_view_context.render(*args, **kwargs) { capture(&block) } end nil