Skip to content
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

Remove block passing / layout support from 'trestle/flash/alert' partial #500

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

spohlenz
Copy link
Member

In Rails partials, block_given? always returns true, meaning the trestle/flash/alert partial previously always called yield, occasionally causing duplicated content.

This PR removes support for using this template as a partial layout. While this does remove some flexibility, it solves the above problem and makes the usage of the partial simpler, clearer and more consistent.

@coveralls
Copy link

Coverage Status

coverage: 91.475%. remained the same
when pulling 7146fc3 on remove-flash-partial-layout
into f4ecf9b on main.

@spohlenz spohlenz merged commit cd82a27 into main Sep 23, 2024
45 checks passed
@spohlenz spohlenz deleted the remove-flash-partial-layout branch September 23, 2024 10:55
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.

2 participants