mirror of
https://github.com/github/rails.git
synced 2026-01-13 16:47:56 -05:00
fixed CacheHelper to properly support html_safe output buffers
This commit is contained in:
@@ -53,7 +53,7 @@ module ActionView
|
||||
# This dance is needed because Builder can't use capture
|
||||
pos = output_buffer.length
|
||||
yield
|
||||
if output_buffer.is_a?(ActionView::OutputBuffer)
|
||||
if output_buffer.html_safe?
|
||||
safe_output_buffer = output_buffer.to_str
|
||||
fragment = safe_output_buffer.slice!(pos..-1)
|
||||
self.output_buffer = ActionView::OutputBuffer.new(safe_output_buffer)
|
||||
|
||||
Reference in New Issue
Block a user