From 1c5e8d8fc4a0e7f4d47f6e1dc8c872b0b1a0f31b Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 2 Jan 2013 17:03:35 +1100 Subject: Bring tag monkeypatch up to date with latest rails 2.3 --- lib/make_html_4_compliant.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/make_html_4_compliant.rb') diff --git a/lib/make_html_4_compliant.rb b/lib/make_html_4_compliant.rb index 214eb9f1f..8926d5873 100644 --- a/lib/make_html_4_compliant.rb +++ b/lib/make_html_4_compliant.rb @@ -3,7 +3,6 @@ ActionView::Helpers::TagHelper.module_eval do def tag(name, options = nil, open = false, escape = true) - "<#{name}#{tag_options(options, escape) if options}" + (open ? ">" : ">") + "<#{name}#{tag_options(options, escape) if options}#{open ? ">" : ">"}".html_safe end end - -- cgit v1.2.3