Remove deprecated code for Rails 2.

pull/6827/head
Christian Rijke 12 years ago
parent 8923bd5529
commit 9ebe41a26c
  1. 8
      lib/widget.rb

@ -45,7 +45,9 @@ end
ActionView::Base.send(:include, Widget::RenderWidgetInstanceMethods)
ActionController::Base.send(:include, Widget::RenderWidgetInstanceMethods)
if Rails.version.start_with? "2"
class ::String; def html_safe; self; end; end
class ::String
def write(s)
concat(s)
end
end
class ::String; def write(s); concat(s); end; end

Loading…
Cancel
Save