Skip to content

Fix capture view helper for HAML and Slim #49612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

casperisfine
Copy link
Contributor

Ref: #47194 (comment)

They both give the buffer as return value of the capture block which confuses the capture helper.

Ideally we wouldn't have to check for that, but it's an acceptable tradeoff for backward compatibility.

@casperisfine
Copy link
Contributor Author

@rafaelfranca I'll add some test tomorrow and backport to 7.1

@rafaelfranca rafaelfranca added this to the 7.1.2 milestone Oct 12, 2023
@rafaelfranca
Copy link
Member

👍🏽 I added to the milestone so I don't forget to double check it is merged

Ref: rails#47194 (comment)

They both give the buffer as return value of the capture block
which confuses the `capture` helper.

Ideally we wouldn't have to check for that, but it's
an acceptable tradeoff for backward compatibility.
@casperisfine casperisfine force-pushed the action-view-capture-nil-not-blank branch from 4402f66 to 79a242d Compare October 13, 2023 06:27
@byroot byroot merged commit 2239749 into rails:main Oct 13, 2023
byroot added a commit that referenced this pull request Oct 13, 2023
Fix `capture` view helper for HAML and Slim
@byroot
Copy link
Member

byroot commented Oct 13, 2023

Backported as c34ddbc

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.

3 participants