<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,21 +2,15 @@ module CommaParser
   
   module ParserMethods
     def allow_commas(*args)
-      before_validation :strip_commas
-      
-      type_cast_array = []
       args.each do |arg|
-        type_cast_array &lt;&lt; &quot;#{arg}_will_change!&quot; 
-        type_cast_array &lt;&lt; &quot;#{arg}_before_type_cast.to_s.tr!(',', '').to_i&quot;
-      end
-      
-      class_eval(
-        %Q(
-          def strip_commas
-            #{type_cast_array.join(&quot;;&quot;)}
-          end
+        class_eval(
+          %Q(
+            def #{arg}=(val)
+              super(val.to_s.tr(',',''))
+            end
+          )
         )
-      )
+      end
     end
   end
 end</diff>
      <filename>lib/comma_parser.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5ecfd656b88aed47fea3bcee233fe76cb555904e</id>
    </parent>
  </parents>
  <author>
    <name>Doug Ramsay</name>
    <email>doug@intridea.com</email>
  </author>
  <url>http://github.com/dramsay/comma_parser/commit/892b1a7428d113a8b261f69e1181c0c1fbbc5226</url>
  <id>892b1a7428d113a8b261f69e1181c0c1fbbc5226</id>
  <committed-date>2008-10-06T13:42:35-07:00</committed-date>
  <authored-date>2008-10-06T13:42:35-07:00</authored-date>
  <message>Doing this in a simpler and better way</message>
  <tree>59799f700c595348129123a606d520c120c90553</tree>
  <committer>
    <name>Doug Ramsay</name>
    <email>doug@intridea.com</email>
  </committer>
</commit>
