<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ class ActiveRecord::Base
 protected
   def clear_empty_attrs
     @attributes.each do |key,value|
-      self[key] = nil if value.blank?
+      self[key] = nil if value.is_a?(String) &amp;&amp; value.blank?
     end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/clear_empty_attributes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b5c5bbb72f0f9bf5ac46f39611c52e48aed22040</id>
    </parent>
  </parents>
  <author>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </author>
  <url>http://github.com/collectiveidea/clear_empty_attributes/commit/89d809a155de6afc1d032e32d3a34d196b49b868</url>
  <id>89d809a155de6afc1d032e32d3a34d196b49b868</id>
  <committed-date>2008-06-16T04:17:06-07:00</committed-date>
  <authored-date>2008-06-16T04:17:06-07:00</authored-date>
  <message>only set to nil if the value is a String and it is blank</message>
  <tree>f99648bee00119200e425d71aac2c0ebb1a5d7b3</tree>
  <committer>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </committer>
</commit>
