class ActionView::Base

def set_output_buffer_with_haml(new)

def set_output_buffer_with_haml(new)
  if is_haml?
    new = String.new(new) if Haml::Util.rails_xss_safe? && new.is_a?(ActionView::SafeBuffer)
    haml_buffer.buffer = new
  else
    set_output_buffer_without_haml new
  end
end