Skip to content

Fix sidecar template precedence over inherited call methods - #2800

Merged
joelhawksley merged 3 commits into
mainfrom
joelhawksley-inherited-call-template-fallback
Nov 20, 2026
Merged

joelhawksley merged 3 commits into
mainfrom
joelhawksley-inherited-call-template-fallback

Conversation

@joelhawksley

Copy link
Copy Markdown
Member

Fixes #2799.

Treat inherited #call methods as HTML when checking template overrides, so a subclass’s sidecar remains authoritative for non-HTML requests.

Adds regression coverage for HTML, Turbo Stream, and XML requests, including deeper inheritance and recompilation.

joelhawksley and others added 2 commits November 20, 2026 11:57
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@joelhawksley
joelhawksley marked this pull request as ready for review November 20, 2026 19:42
@joelhawksley
joelhawksley merged commit 4c614f8 into main Nov 20, 2026
30 checks passed
@joelhawksley
joelhawksley deleted the joelhawksley-inherited-call-template-fallback branch November 20, 2026 19:58
@myabc

myabc commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@joelhawksley many thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inherited #call shadows a subclass's sidecar template for non-HTML formats (regression in 4.21.0)

2 participants