<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,2 @@
 require 'click_to_copy_text_field'
-ActionView::Base.send :include, ClickToCopyTextfield
+ActionController::Base.helper ClickToCopyTextfield</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,14 +2,6 @@
 module ClickToCopyTextfield
   
   def click_to_copy_text_field_tag(name, value = nil, options = {})
-    click_to_copy(name, options) do
-      text_field_tag name, value, { :readonly =&gt; true, :onclick =&gt; &quot;this.select()&quot; }.merge(options)
-    end
-  end
-  
-  protected
-  
-  def click_to_copy(name, options, &amp;block)
     fadeout_length = options.delete(:fadeout_length) || 600
     fadeout_timer = options.delete(:fadeout_timer) || 1000    
     %Q{
@@ -17,7 +9,7 @@ module ClickToCopyTextfield
         .click_to_copy_copied{display:none;}
       &lt;/style&gt;
       &lt;span id=&quot;click_to_copy_input_#{name}&quot; class=&quot;click_to_copy_text_field&quot;&gt;
-        #{capture(&amp;block)}
+        #{text_field_tag name, value, options}
       &lt;/span&gt;
       &lt;span id=&quot;click_to_copy_copied_#{name}&quot; class=&quot;click_to_copy_copied&quot;&gt;Copied to Clipboard&lt;/span&gt;
       &lt;script type=&quot;text/javascript&quot;&gt;</diff>
      <filename>lib/click_to_copy_text_field.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>988c714fd558520a0d62ebf89733c7f154d5c813</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Ng</name>
    <email>ayn@andrewng.com</email>
  </author>
  <url>http://github.com/ayn/click_to_copy_text_field/commit/b91b6be073b2048d5af0a12d75aef01881e756ac</url>
  <id>b91b6be073b2048d5af0a12d75aef01881e756ac</id>
  <committed-date>2008-12-04T16:17:06-08:00</committed-date>
  <authored-date>2008-12-04T16:17:06-08:00</authored-date>
  <message>updating this with working version from another project</message>
  <tree>99f01e98d87b0cb3756f5bdb05628ea93b67290d</tree>
  <committer>
    <name>Andrew Ng</name>
    <email>ayn@andrewng.com</email>
  </committer>
</commit>
