Fix incorrect implementation for writing widgets to string canvas

pull/6827/head
Tim Felgentreff 14 years ago
parent 83ad9014ab
commit 6ca903a2d3
  1. 4
      lib/widget/base.rb

@ -72,9 +72,7 @@ class Widget::Base < Widget
# Set the canvas. If the canvas object isn't a string (e.g. cannot be cached easily),
# a @cache_output String is created, that will mirror what is being written to the canvas.
def set_canvas(canvas)
unless canvas.respond_to? :to_str
@cache_output = @output || "".html_safe
end
@cache_output = "".html_safe
@output = canvas
end
end

Loading…
Cancel
Save