<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,24 +1,16 @@
 require 'active_support'
 
 module ActionView::Helpers::TagHelper
-  
-  # First copy the standard tag method to tag_old
-  alias_method :tag_old, :tag
-  
-  # Calls tag_old making sure it will not self-close
-  def non_self_closing_tag(name, options = nil, open = false)
-    tag_old name, options, true
+  # Forces the &quot;open&quot; param to always be true so it never self-closes
+  def tag_with_non_self_closing(name, options = nil, open = false, *args)
+    tag_without_non_self_closing name, options, true
   end
   
-  # Now calls to tag will be non-self-closing
-  alias_method :tag, :non_self_closing_tag
-  
+  alias_method_chain :tag, :non_self_closing
 end
 
 class ActionView::Helpers::InstanceTag
-  
   # We have to re-alias tag_without_error_wrapping because it is previously
   # aliased to the old version of tag, which self-closes
-  alias_method :tag_without_error_wrapping, :non_self_closing_tag
-  
-end
\ No newline at end of file
+  alias_method :tag_without_error_wrapping, :tag_with_non_self_closing
+end</diff>
      <filename>lib/html_output.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-%w(rubygems action_pack test/unit).each { |r| require r }
+%w(rubygems active_support action_controller action_view test/unit).each { |r| require r }
 require File.join(File.dirname(File.dirname(__FILE__)), 'lib', 'html_output')
 
 class HtmlOutputTest &lt; Test::Unit::TestCase
@@ -6,6 +6,9 @@ class HtmlOutputTest &lt; Test::Unit::TestCase
   
   def test_tag
     assert_not_self_closing tag(&quot;br&quot;)
+    assert_not_self_closing tag(&quot;link&quot;, :rel =&gt; &quot;stylesheet&quot;)
+    assert_not_self_closing tag(&quot;link&quot;, {:rel =&gt; &quot;stylesheet&quot;}, true)
+    assert_not_self_closing tag(&quot;link&quot;, {:rel =&gt; &quot;stylesheet&quot;}, true, false)
   end
   
   def test_instance_tag</diff>
      <filename>test/test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6066e7bb861d6ff8734f83747b8695b28343e8d8</id>
    </parent>
  </parents>
  <author>
    <name>Jon Leighton</name>
    <email>j@jonathanleighton.com</email>
  </author>
  <url>http://github.com/jonleighton/html_output/commit/1232b39aec099d203a8bf3f67f3dec077ca2dc34</url>
  <id>1232b39aec099d203a8bf3f67f3dec077ca2dc34</id>
  <committed-date>2007-12-11T11:39:26-08:00</committed-date>
  <authored-date>2007-12-11T11:39:26-08:00</authored-date>
  <message>Update for Rails 2</message>
  <tree>11591fd7c144a7571f53c2029a98221458bfb8ff</tree>
  <committer>
    <name>Jon Leighton</name>
    <email>j@jonathanleighton.com</email>
  </committer>
</commit>
