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.
coverage: 91.475%. remained the same
when pulling 7146fc3dc01ff7d0c20d57e5416a9f29a7e6c5cf on remove-flash-partial-layout
into f4ecf9b6bb6cda41c6c5370ec80f3f4150abbd96 on main.
In Rails partials,
block_given?
always returns true, meaning thetrestle/flash/alert
partial previously always calledyield
, 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.