diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-02 17:03:35 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-02 17:03:35 +1100 |
commit | 1c5e8d8fc4a0e7f4d47f6e1dc8c872b0b1a0f31b (patch) | |
tree | 045286be90cd0fa2577b1668de0a9a833987abc0 /lib | |
parent | 7a0141b0f6ed70c6aa7bef9fd59cb0835231098a (diff) |
Bring tag monkeypatch up to date with latest rails 2.3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/make_html_4_compliant.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 - |