Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating note about compatibility.

  • Loading branch information...
commit 3ed46dd2d26938a9b2d1ed248989ee406b9c22c6 1 parent 0851854
Nicholas Dainty authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  README.markdown
  2. +2 −2 init.rb
View
2  README.markdown
@@ -10,7 +10,7 @@ The original Rails-provided method is aliased as xhtml_tag.
Compatibility
-------------
-Tested with Rails 2.1.
+Tested with Rails 2.1 and 2.2.
Install
-------
View
4 init.rb
@@ -1,6 +1,6 @@
module ::ActionView::Helpers::TagHelper
alias :xhtml_tag :tag
-
+
def tag(name, options = nil, open = false, escape = true)
"<#{name}#{tag_options(options, escape) if options}>"
end
@@ -10,4 +10,4 @@ def tag(name, options = nil, open = false, escape = true)
def tag_without_error_wrapping(name, options = nil, open = false, escape = true)
"<#{name}#{tag_options(options, escape) if options}>"
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.