lib/haml/helpers/action_view_mods.rb in haml-2.2.17 vs lib/haml/helpers/action_view_mods.rb in haml-2.2.18
- old
+ new
@@ -24,10 +24,11 @@
alias_method :output_buffer_without_haml, :output_buffer
alias_method :output_buffer, :output_buffer_with_haml
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)
+ new = String.new(new) if Haml::Util.rails_xss_safe? &&
+ new.is_a?(Haml::Util.rails_safe_buffer_class)
haml_buffer.buffer = new
else
set_output_buffer_without_haml new
end
end