From 65acaee326a9456cd1faf573cf1edcbf61f018c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matyas?= Date: Fri, 17 Apr 2026 13:10:40 +0200 Subject: [PATCH] docs: correct yield to super in execute_multiplex method. Fixes #5599 --- guides/queries/multiplex.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/queries/multiplex.md b/guides/queries/multiplex.md index a3d6c10a8b2..9183bd83602 100644 --- a/guides/queries/multiplex.md +++ b/guides/queries/multiplex.md @@ -115,7 +115,7 @@ Multiplex analyzers may return {{ "AnalysisError" | api_doc }} to halt execution You can add hooks for each multiplex run with {% internal_link "trace modules", "/queries/tracing" %}. -The trace module may implement `def execute_multiplex(multiplex:)` which `yield`s to allow the multiplex to execute. See {{ "Execution::Multiplex" | api_doc }} for available methods. +The trace module may implement `def execute_multiplex(multiplex:)` which must call `super` to allow the multiplex to execute. See {{ "Execution::Multiplex" | api_doc }} for available methods. For example: @@ -124,7 +124,7 @@ For example: module MultiplexCounter def execute_multiplex(multiplex:) Rails.logger.info("Multiplex size: #{multiplex.queries.length}") - yield + super end end