Displaying 1 result from an estimated 1 matches for "safe_output_buffer".
2011 Jul 15
0
Writing test for CacheHelper
...patch actionpack/lib/action_view/helpers/
cache_helper.rb so that it doesn''t throw when ouput_buffer isn''t
ActionView::OutputBuffer but is still html_safe. In 3-0-stable the
function contains the following if:
          if output_buffer.is_a?(ActionView::OutputBuffer)
            safe_output_buffer = output_buffer.to_str
            fragment = safe_output_buffer.slice!(pos..-1)
            self.output_buffer =
ActionView::OutputBuffer.new(safe_output_buffer)
          else
            fragment = output_buffer.slice!(pos..-1)
          end
I have prepared a patch for this [1] which based on [...