<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>CHANGELOG.rdoc</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
+CHANGELOG.rdoc
 lib/legacy_woes.rb
 Manifest
 MIT-LICENSE</diff>
      <filename>Manifest</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require 'rubygems'
 require 'rake'
 require 'echoe'
 
-Echoe.new('legacy_woes', '0.1.2') do |p|
+Echoe.new('legacy_woes', '0.2.0') do |p|
   p.description    = 'Tools for legacy databases and ActiveRecord'
   p.url            = 'http://github.com/adkron/legacy_woes'
   p.author         = 'Amos King'</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -2,18 +2,18 @@
 
 Gem::Specification.new do |s|
   s.name = %q{legacy_woes}
-  s.version = &quot;0.1.2&quot;
+  s.version = &quot;0.2.0&quot;
 
   s.required_rubygems_version = Gem::Requirement.new(&quot;&gt;= 1.2&quot;) if s.respond_to? :required_rubygems_version=
   s.authors = [&quot;Amos King&quot;]
-  s.date = %q{2008-12-22}
+  s.date = %q{2009-01-28}
   s.description = %q{Tools for legacy databases and ActiveRecord}
   s.email = %q{amos.l.king@gmail.com}
-  s.extra_rdoc_files = [&quot;lib/legacy_woes.rb&quot;, &quot;README.rdoc&quot;]
-  s.files = [&quot;lib/legacy_woes.rb&quot;, &quot;Manifest&quot;, &quot;MIT-LICENSE&quot;, &quot;Rakefile&quot;, &quot;README.rdoc&quot;, &quot;legacy_woes.gemspec&quot;]
+  s.extra_rdoc_files = [&quot;CHANGELOG.rdoc&quot;, &quot;lib/legacy_woes.rb&quot;, &quot;README.rdoc&quot;]
+  s.files = [&quot;CHANGELOG.rdoc&quot;, &quot;lib/legacy_woes.rb&quot;, &quot;Manifest&quot;, &quot;MIT-LICENSE&quot;, &quot;Rakefile&quot;, &quot;README.rdoc&quot;, &quot;legacy_woes.gemspec&quot;, &quot;CHANGELOG.rdoc&quot;]
   s.has_rdoc = true
   s.homepage = %q{http://github.com/adkron/legacy_woes}
-  s.rdoc_options = [&quot;--line-numbers&quot;, &quot;--inline-source&quot;, &quot;--title&quot;, &quot;Legacy_woes&quot;, &quot;--main&quot;, &quot;README.rdoc&quot;]
+  s.rdoc_options = [&quot;--line-numbers&quot;, &quot;--inline-source&quot;, &quot;--title&quot;, &quot;Legacy_woes&quot;, &quot;--main&quot;, &quot;README.rdoc&quot;, &quot;CHANGELOG.rdoc&quot;, &quot;MIT-LICENSE&quot;]
   s.require_paths = [&quot;lib&quot;]
   s.rubyforge_project = %q{legacy_woes}
   s.rubygems_version = %q{1.3.1}</diff>
      <filename>legacy_woes.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -14,36 +14,42 @@ module LegacyWoes
     # Sets the created_at column.
     # Also defines methods for created_at and created_at=.
     def created_at_column(legacy_column_name)
-      module_eval &lt;&lt;-EOB
-        def write_attribute_with_#{legacy_column_name}_created_at(name, value, &amp;block)
-          if name == 'created_at'
-            write_attribute('#{legacy_column_name}', value)
-          else
-            send(:write_attribute_without_#{legacy_column_name}_created_at, name, value, &amp;block)
-          end
-        end
-        EOB
-      
-      alias_attribute :created_at, legacy_column_name
-      alias_method_chain :write_attribute, &quot;#{legacy_column_name}_created_at&quot;
+      setup_legacy_method(legacy_column_name, :created_at:)
     end
     
     # Sets the updated_at column.
     # Also defines methods for updated_at and updated_at=.
     def updated_at_column(legacy_column_name)
+      setup_legacy_method(legacy_column_name, :updated_at)
+    end
+    
+    # Sets the created_on column.
+    # Also defines methods for created_on and created_on=.
+    def created_on_column(legacy_column_name)
+      setup_legacy_method(legacy_column_name, :created_on:)
+    end
+    
+    # Sets the updated_on column.
+    # Also defines methods for updated_on and updated_on=.
+    def updated_on_column(legacy_column_name)
+      setup_legacy_method(legacy_column_name, :updated_on)
+    end
+    
+    def self.setup_legacy_method(legacy_column_name, replacement_column)
       module_eval &lt;&lt;-EOB
-        def write_attribute_with_#{legacy_column_name}_updated_at(name, value, &amp;block)
-          if name == 'updated_at'
+        def write_attribute_with_#{legacy_column_name}_#{replacement_column}(name, value, &amp;block)
+          if name == '#{replacement_column}'
             write_attribute('#{legacy_column_name}', value)
           else
-            send(:write_attribute_without_#{legacy_column_name}_updated_at, name, value, &amp;block)
+            send(:write_attribute_without_#{legacy_column_name}_#{replacement_column}, name, value, &amp;block)
           end
         end
         EOB
-         
-      alias_attribute :updated_at, legacy_column_name
-      alias_method_chain :write_attribute, &quot;#{legacy_column_name}_updated_at&quot;
+        
+        alias_attribute replacement_column, legacy_column_name
+        alias_method_chain :write_attribute, &quot;#{legacy_column_name}_#{replacement_column}&quot;
     end
+    protected :setup_legacy_method
   end
 end
 </diff>
      <filename>lib/legacy_woes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,7 @@
+require 'rubygems'
+require 'active_record'
+require '../lib/legacy_woes'
+
 class Comment &lt; ActiveRecord::Base
   created_at_column :createddate
 end
\ No newline at end of file</diff>
      <filename>test/comment.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>768c690c49ab30fb529bc3d4926398fdcb2d631c</id>
    </parent>
  </parents>
  <author>
    <name>Amos King</name>
    <email>amos.l.king@gmail.com</email>
  </author>
  <url>http://github.com/adkron/legacy_woes/commit/fc47ff0a902f11ba1b76f3b350876aa31cf1d126</url>
  <id>fc47ff0a902f11ba1b76f3b350876aa31cf1d126</id>
  <committed-date>2009-01-28T08:29:18-08:00</committed-date>
  <authored-date>2009-01-28T08:29:18-08:00</authored-date>
  <message>Push 0.2.0 with created_on and updated_on support</message>
  <tree>7678c4da5ef85b74a1857eefa94c994b2f67fa37</tree>
  <committer>
    <name>Amos King</name>
    <email>amos.l.king@gmail.com</email>
  </committer>
</commit>
