Skip to content

Revert "Add default #render_in implementation to ActiveModel::Conversion"#57374

Merged
guilleiguaran merged 1 commit into
rails:mainfrom
seanpdoyle:revert-pr-57349
May 15, 2026
Merged

Revert "Add default #render_in implementation to ActiveModel::Conversion"#57374
guilleiguaran merged 1 commit into
rails:mainfrom
seanpdoyle:revert-pr-57349

Conversation

@seanpdoyle

Copy link
Copy Markdown
Contributor

Motivation / Background

Based on a comment on the original PR (#57349), the render call does not incorporate controller-based view partial namespacing based on the render context.

Detail

This reverts commit 241f2a0.

Since ActiveModel::Conversion#render_in is not yet released, this commit reverts the change in favor of a subsequent re-submission of the original PR to incorporate the newly documented edge case.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

…ersion`"

This reverts commit 241f2a0.

Based on a [comment][] on the original PR ([rails#57349][]), the `render`
call does not incorporate controller-based view partial namespacing
based on the render context.

Since `ActiveModel::Conversion#render_in` is not yet released, this
commit reverts the change in favor of a subsequent re-submission of the
original PR to incorporate the newly documented edge case.

[comment]: rails#57349 (comment)
@seanpdoyle seanpdoyle requested a review from guilleiguaran May 15, 2026 14:49
@guilleiguaran guilleiguaran merged commit 9cc62ec into rails:main May 15, 2026
4 checks passed
@seanpdoyle seanpdoyle deleted the revert-pr-57349 branch May 15, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants