Monkeypatch String to have a #write method, to mimic canvas behaviour

pull/6827/head
Tim Felgentreff 14 years ago
parent 1f5eeaeec6
commit 5b17ca25ea
  1. 2
      lib/widget.rb

@ -17,6 +17,8 @@ if Rails.version.start_with? "2"
class ::String; def html_safe; self; end; end
end
class ::String; def write(s); concat(s); end; end
class Widget < ActionView::Base
include ActionView::Helpers::TagHelper
include ActionView::Helpers::AssetTagHelper

Loading…
Cancel
Save