-
Cameron Dutro authored
A recent change designed to avoid swapping references to the view context's output buffer (https://github.com/rails/rails/pull/45731) added a #capture method to the OutputBuffer class. The original CaptureHelper#capture method however still swaps the buffer via CaptureHelper#with_output_buffer, meaning the @output_buffer reference is still reassigned by form helpers, etc. This change delegates capture behavior to @output_buffer so a single buffer is used per request.
Cameron Dutro authoredA recent change designed to avoid swapping references to the view context's output buffer (https://github.com/rails/rails/pull/45731) added a #capture method to the OutputBuffer class. The original CaptureHelper#capture method however still swaps the buffer via CaptureHelper#with_output_buffer, meaning the @output_buffer reference is still reassigned by form helpers, etc. This change delegates capture behavior to @output_buffer so a single buffer is used per request.
Loading